Ktor City API with Koin, Exposed, and SQLite
Вставка
- Опубліковано 31 лип 2022
- Links:
* GitHub Source Code: github.com/santansarah/ktor-c...
* Video Branch: github.com/santansarah/ktor-c...
* Ktor Status Pages: ktor.io/docs/status-pages.html
* Exposed Wiki: github.com/JetBrains/Exposed/...
* City info: simplemaps.com/data/us-zips
This Ktor REST API allows users to fetch city information by:
* City name prefixes
* Zip codes
* and more
In Part 1, I'll go over:
* The project background and basic concepts
* API Postman/Endpoints
* Exposed setup with SQLite
* Ktor data layer
* Creating tables and inserting data with Exposed
* Koin dependency injection
* Implementing Use Cases
* Ktor routes
* Ktor Status Pages (Routing Exceptions) - Наука та технологія
Thank you Sarah for the video , what i would love to see as a progress in these kotlin/ktor/android projects is the use of JWT and the offline-first approach which means downloading the sqlite db and putting a syncing strategy ..i'll try to work on that on my own but i really appreciate the structure you put here
Thank Sarah for a video, I like how you explain and how you prepared your code, very good👍
thank you! i cant thank you enough. I've been struggling to implement sqlite with exposed. I am new to all this
Awesome video! Very complete, even includes architecture and how to save files (folder structure) I'm an Android dev trying to learn this new tool and this video is very helpful, thanks a lot!
Good work, keep it up!
Thank you 🙂
it is helpful video, thank you Sarah
Wow, very nice video.Keep it up.
Thank you 😀
Well done 💯
Thanks Sarah! I'm looking into creating a small backend with ktor for a project and this did help to wrap my head around the complexity. Looking to see more clear and concise videos! P.s. Would be super awesome if you would add a video about deploying to heroku or somewhere else, since it gave me a lot of errors and there were no answers
Hi - thanks, I'm glad it helped! Next, I plan to make some videos about connecting to this API from an Android app, but deploying ktor APIs sounds like a great/useful video idea...I will keep it in mind...
@@santansarah yeah, cause the documentation on ktor’s website is somewhat shallow and inconclusive🤔
can you please help me connect a SQL database created with xampp to connect with Android studio app in kotlin?
I don't understand in some cases in the data folder you use interfaces and in other files you use data classes....
Hi, after looking at my data folder again, I realize that I need to do some refactoring/organizing. I'll work on adding some better architecture into my next video. For general info about using data classes, interfaces, etc. with Ktor, their guide called *Database persistence with Exposed* has step-by-step examples.
Good work, However i question the use of Antiquated technologies like SQL ! maybe use Mongo/Kmongo (other options also exist) ? the benefits speak for itself!
Hi, I agree! Since SQLite is supported, I wanted to try it out. It also might be an easier learning curve for Android developers looking to get started.