Vert.x-Web - Part 1 - Hello world with Vert.x-Web

My notes :)

For building web applications Use vertx. web is better and easier than vert.x

Vertx.web is ideal for the following :

  1. Classic Server side web applications.
  2. REST ful API's

For maven :






Router  - maintains 0 or more routes.
Router takes a request finds the route and passes the request to the route.
A route has a handle associated to perform some action when the request is received.

Write a simple class that extends the abstract vehicle

Add the following plugin to run the application
Packaging as a fat jar. A fat jar has all dependencies which make it easy to execute.


Build the mvn application :  mvn clean install
To run :java -jar target/1.0.1-1-fat.jar

http://localhost:8080/


Comments