Suave Music Store Demo in Kotlin
This is the same Suave demo app (a Music web store), but written in Kotlin. This app is written in a purely functional style. It uses Http 4K to treat the server as a function, and Jooq for typed database queries.
See my other F# implementation of this app in F# for a comparison between Kotlin and F#.
Running
- Create a Docker image of the database:
docker build -t theimowski/suavemusicstore_db:0.1 postgres
- Start a container with the image:
docker run --name suavemusicstore_db -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 theimowski/suavemusicstore_db:0.1
- Run the app:
gradlew run
- App should be available at
http://localhost:8000