Skip to content

Latest commit

 

History

History
 
 

hello-vertx

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Hello Vert.x Example

This example is the Vert.x hello world. It creates a HTTP server returning a greeting message.

Build the application

Just run:

./mvnw package

On Windows, use:

./mvnw.bat package

Run the application

The application is packaged into target/vertx-hello-1.0-SNAPSHOT.jar. Launch it with:

java -jar target/vertx-hello-1.0-SNAPSHOT.jar 

Then, open a browser to: http://localhost:8080, you should see "Hello from Vert.x".

Run the application in development mode

If you want to modify the application code and get hot reload, just launch:

mvn compile vertx:run

Now, update your source files and save. The application is re-packaged and restarted.