Playground to get in touch with vert.x, angularJS and stateless authentication based on JWT. Currently the Angular part is still missing, the following aspects are already considered:
- vertx-core
- vertx-web
- vertx-auth-jwt
- Logging with log4j
- CRUD REST API
- junit tests with vertx-unit, junit and unirest
- a simple stress test
- Java 8
- bootstrap for nicer html output
- see build.gradle file for all dependencies
just clone the project and call:
./gradlew clean run
Then open http://localhost:8080
in your browser and see the overwhelming "Super Hero Website" example :)
Any code changes will let to an automatically redeployment of the app.
just run ./gradlew test
- call
./gradlew clean eclipse
, open eclipse and Import as existing eclipse project. - Create a
run
ordebug
config, and setde.predbo.vertx.Log4JLauncher
as main class. - In the arguments tab, set the program arguments:
run de.predbo.vertx.MainVerticle -conf src/main/resources/vertx.config
. - Set the VM argumets to
-Dvertx.options.blockedThreadCheckInterval=600000
(to avoid warnings ala "Thread was blocked long time")
./gradlew clean shadowJar
will do everything for you. It will create a jar file in build/lib/
directory. This jar can be executed with java -jar {jar file}
####Example
java -jar build/libs/vert.x-angular-jwt-3.2.0-fat.jar -conf src/main/resources/vertx.config -instances 4
That's all!