The goal of the application is to build a dummy messaging server (chat server) which communicates over HTTP
.
The server expose one endpoint: POST
: /messages/{type}
For the current example the server should support only 2 types of messages:
send_text
(e.g.http://localhost/messages/send_text
)send_emotion
(e.g.http://localhost/messages/send_emotion
)
You can build the project using the included Gradle wrapper by running:
./gradlew build
on Linux/macOSgradlew build
on Windows
./gradlew bootRun
on Linux/macOSgradlew bootRun
on Windows
Make sure that the project is built with ./gradlew build
and then run:
./gradlew docker
on Linux/macOSgradlew docker
on Windows
To run the docker image on port 8080
use:
./gradlew dockerRun
on Linux/macOSgradlew dockerRun
on Windows