Note: An article about FlightPlanner has been featured by Kotlin Weekly (#241), thanks! 🙏
Flight planner helps you keep track of your flights. It is a personal pet project that can be used as a guide to build a backend, API and a web using Ktor. I've described the whole process in this article, which was featured by the official Kotlin twitter account
-
Backend + API: Ktor and PostGresSQL.
-
Front-End: Bootstrap and Free Marker.
Although the website does not use it, an API has been provided to login and add new flights. It uses JWT for authentication.
By doing a POST in /login with your username and password you'll get your token to then do POST in /api/v1/flights and add new flights into your account.
- Error handling is almost non-existent in the API side.
- No unit-tests
- The front-end could get a lot more love.
- Add more endpoints to the API (i.e POST /signup or DELETE /flights/{userId}/{flightId})
- Build a mobile client (Android/iOS app).