The application was built with:
- Kotlin as programming language
- Ktor as web framework
- Exposed as Sql framework to persistence layer
- SQLite as database
You need just JVM installed.
The server is configured to start on 8080.
Use the build tool Gradle to build project.
Build:
./gradlew clean build
Start the server:
./gradlew run
Currently, previous database isn't dropped if exists when initiating the server. If you wish to change this option switch the next line in Application.kt:
MyDatabase.createTables(false)
To:
MyDatabase.createTables(true)