Backend and other services for CollegeAppIIITN using Ktor 💙
- Server: Netty
- Authentication: JWT Token
- Serialization: Ktor Serialization & GSON
- EngineMain as
main
runner - Koin for dependency Injection
- MongoDB as primary Database: KMongo (a kotlin toolkit for mongo)
- Kotlin Coroutines
- CORS
- Call Logging: Ktor Server Call Logging
- Content Negotiation
- Gradle KTS
Hosted on Heroku (Official documentation)
Steps other than the documentation to host on heroku:
- make sure heroku CLI is installed
- setup env variables
- adding the Procfile for the script along with the correct
build/install/<package-name>
location
MONGO_URL = <mongo db hosted connect url, atlas, aws anything>
JWT_SECRET = <some jwt secret here>
PORT = <4200>
and some other env variables if you want
- deployment works only on
main
andmaster
branches on heroku