This simple project aimed to test standard Netty HTTP server functinality along with Guice as a DI framework.
Netty HTTP server receives income POST request with Customer entity and saves it to the database.
Then prints out all records from Customer database table.
Gradle was chosen as as automation tool.
Derby is used as an database - no pre-install needed! Just run an application :)
com.illuha.netty1.BootstrapApp#main
then make a POST request to localhost:8080 using any HTTP client tool (Postman, etc.). Write in the POST body:
{"id":"1", "name": "Customer1" }
Of course, use header:
Content-Type: application/json
and look to the app console output :)
P.S. if your 8080 port is busy with another application, pass another port in app command line parameters:
application [host] [port]