/devoteam-helloworld

Vert.

Primary LanguageJavaApache License 2.0Apache-2.0

Build Status

Hello World Microservice Application using Vert.x

This application creates a fat jar which includes;

a GET endpoint (/) that returns

{
  "message" : "hello world"
}

and

a POST endpoint (/) that

expects

{"name":"yourname", "surname":"yoursurname"}

returns

{"message":"Hello, yourname yoursurname"} 

with 201 status

listening on port 8888

Build and Run

In order to create a fat jar package, install jdk >= 8 and Maven; afterwards, run this command:

mvn clean package

For running the app:

java -jar target/devoteam-helloworld-1.0-SNAPSHOT-fat.jar