Skip to content

Commit 1a4ff25

Browse files
committed
src: example using websockets and SpringBoot
1 parent 01cd178 commit 1a4ff25

22 files changed

+239
-536
lines changed

.gitignore

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
1-
*.class
2-
.classpath
3-
.settings
4-
target
5-
.idea
6-
build
71
.gradle
2+
build
3+
.idea
4+
*.iml
85
out
9-
nanook.iml
10-
/bin/
11-
.project
12-
*~
13-
.*
14-
!/.gitignore
15-
*.log
6+
bin

.project

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>nanook</name>
4+
<comment>Project nanook created by Buildship.</comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22+
</natures>
23+
</projectDescription>

LICENSE

-201
This file was deleted.

LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Helio Frota
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
# nanook
22

3-
A web terminal
3+
An example of Æesh commands being called by browser using WebSockets and SpringBoot.
44

5-
(weird prototype to put to work Æesh and Wildfly-Swarm (undertow-js fraction (nashorn)))
6-
7-
![Alt nanook](https://raw.githubusercontent.com/aeshell/nanook/master/nanook.png)
8-
9-
### build and run
5+
## How to use
106

117
```
12-
$ gradle clean build && java -jar build/libs/nanook-swarm.jar
8+
$ gradle bootRun
139
```
1410

1511
Go to http://localhost:8080 and type `ls`
16-
17-
### Built upon...
18-
19-
[JQuery Terminal](http://terminal.jcubic.pl/)
20-
21-
[Æsh](https://github.com/aeshell/aesh)
22-
23-
[Wildfly-Swarm](https://github.com/wildfly-swarm/)

build.gradle

+20-15
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
buildscript {
2-
version = '1.0.0.Alpha6-SNAPSHOT'
3-
repositories {
4-
mavenCentral()
5-
mavenLocal()
6-
}
7-
dependencies {
8-
classpath "org.wildfly.swarm:wildfly-swarm-plugin:$version"
9-
}
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.5.RELEASE")
7+
}
108
}
119

12-
apply plugin: 'wildfly-swarm'
1310
apply plugin: 'java'
14-
apply plugin: 'war'
11+
apply plugin: 'idea'
12+
apply plugin: 'org.springframework.boot'
13+
apply plugin: 'io.spring.dependency-management'
14+
15+
bootJar {
16+
baseName = 'nanook'
17+
version = '0.1.0'
18+
}
1519

1620
repositories {
17-
mavenCentral()
18-
mavenLocal()
21+
mavenCentral()
1922
}
2023

2124
dependencies {
22-
compile "org.wildfly.swarm:wildfly-swarm-undertow-js:$version"
23-
compile 'org.jboss.aesh:aesh:0.66'
24-
compile 'org.jboss.aesh:aesh-extensions:0.66'
25+
implementation 'org.jboss.aesh:aesh:0.66'
26+
implementation 'org.jboss.aesh:aesh-extensions:0.66'
27+
implementation 'org.springframework.boot:spring-boot-starter-websocket'
28+
29+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
2530
}

gradle/wrapper/gradle-wrapper.jar

2.86 KB
Binary file not shown.
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Sun Jun 28 14:29:35 BRT 2015
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip

0 commit comments

Comments
 (0)