https://github.com/abedurftig/http4k-test-drive
First time playing with Http4K
https://github.com/abedurftig/http4k-test-drive
http4k kotlin spek2
Last synced: about 1 year ago
JSON representation
First time playing with Http4K
- Host: GitHub
- URL: https://github.com/abedurftig/http4k-test-drive
- Owner: abedurftig
- Created: 2020-04-23T09:42:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T12:36:25.000Z (about 6 years ago)
- Last Synced: 2025-02-08T13:12:05.746Z (over 1 year ago)
- Topics: http4k, kotlin, spek2
- Language: Kotlin
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Http4k Test Drive

Giving [Http4k](https://www.http4k.org/) a test drive.
## Build
Run `./gradlew build` to build and test the project.
## Run the server
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 see `Hello World!`.
- Browse to `http://localhost:8080/add?first=1&second=9`, you should see `The answer is 10`