Hello everyone, I'm trying to learn ktor for serve...
# server
j
Hello everyone, I'm trying to learn ktor for server side development so can anyone tell me some good blogs for this
j
You can take a look here: https://kotlinlang.org/lp/server-side
j
I have gone through this and created a basic api but now I'm trying to integrate a database like mongodb atlas or postgres with ktor to create rest api and websites but not able to find a tutorial that can teach me so can you suggest me a good tutorial
j
I would select a DB first (MongoDB and PostgreSQL are very different) and after that check a tool for data access in a more Kotlin way. Options could be: https://litote.org/kmongo, https://github.com/JetBrains/Exposed or https://jdbi.org each of those libraries have good documentation to get started 🙂
a
Take a look at the samples in Ktor's github - there's a lot of good examples that cover the use cases: https://github.com/ktorio/ktor-samples/tree/main/generic/samples
🙌 1
j
Ok thanks I'll have a look at these links