Skip to content

This is a TODO server built purely in kotlin using the awesome Ktor and PostgreSQL

Notifications You must be signed in to change notification settings

Fbada006/TodoServer

Repository files navigation

TodoServer

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.

Configuration error

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!

About

This is a TODO server built purely in kotlin using the awesome Ktor and PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published