https://github.com/stempler/vertx-sample
https://github.com/stempler/vertx-sample
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stempler/vertx-sample
- Owner: stempler
- License: apache-2.0
- Created: 2017-02-23T10:23:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-02T07:41:39.000Z (almost 6 years ago)
- Last Synced: 2025-02-09T16:38:46.660Z (4 months ago)
- Language: Java
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Vert.x 3 simple Gradle project example
======================================This project shows a very simple example project using Gradle, which has an HTTP server with a very simple API and backend.
In this example Vert.x is used embedded. I.e. we use the Vert.x APIs directly in our own classes rather than deploying
the code in verticles.To run the service, Java 8 needs to be available on your machine.
You can run or debug the example in your IDE by just right clicking the main class (`BookService`) and *Run as...* or *Debug as...*
To use the project in Eclipse, first run
```
./gradlew eclipse
```to generate an Eclipse project that you can import into your workspace.
The build.gradle uses the Gradle shadowJar plugin to assemble the application and all it's dependencies into a single "fat" jar.
To build the "fat jar"
```
./gradlew shadowJar
```Because the application plugin is being used, you may directly run the application:
```
./gradlew run
```Now point your browser at