Messages board example
A simple application which allows to exchange messages via REST API and displays live messages on a message board.
Usage
Build the application.
$ ./mvnw package
Start messages service in a first terminal window.
$ java -jar messages-service/target/messages-service.jar
Start dashboard service in a second terminal window.
$ java -jar dashboard/target/dashboard.jar
Open messages board in your browser.
Send messages in a third terminal window using HTTPie.
$ http POST :8081 sender=John text="Hello, World"
Or using cURL.
$ curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"sender": "John", "text": "Hello again"}' http://localhost:8081