Giving Http4k a test drive.
Run ./gradlew build
to build and test the project.
Run java -jar ./build/libs/http4k-test-drive-all.jar
to start the server.
Note, it will try to start on port 8080, so make sure no other process is using that port.
- Browse to
http://localhost:8080/greeting
, you should seeHello World!
. - Browse to
http://localhost:8080/add?first=1&second=9
, you should seeThe answer is 10