Skip to content

Simple project to test Netty features along with Guice as DI tool

Notifications You must be signed in to change notification settings

ilusha87/netty_guice_demo

Repository files navigation

netty_guice_demo

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 :)

Running 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]

About

Simple project to test Netty features along with Guice as DI tool

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages