This is a TODO server built purely in kotlin using the awesome Ktor and PostgreSQL. This code is based on the tutorial of the awesome raywenderlich. If you have any problems setting up PostgreSQL on windows, then this can help you. On mac, then this should help you get started nicely with postgres using brew.
If you encounter an error while running the server even after using the configuration from the ray wanderlich app above, then make sure you use the following
JDBC_DRIVER=org.postgresql.Driver
JDBC_DATABASE_URL=jdbc:postgresql:todos?user=postgres
SECRET_KEY=898748674728934843
JWT_SECRET=898748674728934843
instead of
JDBC_DRIVER=org.postgresql.Driver
JDBC_DATABASE_URL=jdbc:postgresql:todos?user=postgres;
SECRET_KEY=898748674728934843
JWT_SECRET=898748674728934843
Note the semi colon in the second configuration.
Enjoy!