Ktor Tutorial - Building a RESTful API with JWT Authentication
Вставка
- Опубліковано 8 лип 2024
- Welcome to Ktor Tutorial. In this course, I will show you how you can build a RESTful API using Ktor with our favorite programming language, Kotlin.
So if you are an Android Developer and you love Kotlin, then I think you must learn a few back-end things. And that is why I built this course, especially for android developers who want to do back-end development.
Source Code of the project:
simplifiedcoding.in/download/25
Timestamps:
0:00 Coming Up
0:35 Introduction
1:08 Installing Tools
2:48 Creating Ktor Project
4:00 Ktor Hello World
6:35 Creating Database in PostgreSQL
7:32 Adding Dependencies
9:11 Database Connection
13:24 Creating Database Table
16:15 Inserting Into Database
33:22 User Registration Route
38:05 Testing User Registration API
38:56 Encrypting Password
43:22 Integration JWT for Authentication
54:25 Wrapping Up
Finally, If you love my content please SHARE my courses with your friends. You can share this course on your Facebook, WhatsApp, etc.
For more content related to Software Development visit my website.
👉 www.simplifiedcoding.net
You can SUPPORT me if you want
👉 Patreon: / belalkhan
👉 UPI (India Only): probelalkhan@okaxis
👉 PayTM (India Only): +917549161079
👉 PayPal: www.paypal.me/probelalkhan
You can also check some of my other courses from these links
👉 Dart Programming Tutorial: bit.ly/2S8y0Pu
👉 Kotlin Programming Tutorial: bit.ly/2Q2puRm
👉 Android MVVM Tutorial: bit.ly/3iLfVzu
👉 Android Game Development Tutorial: bit.ly/38JmltC
👉 Retrofit Android Tutorial: bit.ly/2DEwAl1
👉 Android RecyclerView Tutorial: bit.ly/2TqVjPz
👉 Android Room Tutorial: bit.ly/2PfQHeN
👉 Firebase Auth Tutorial: bit.ly/2WUGhEo
👉 Android Notification Tutorial: bit.ly/2Sc6jQl
👉 Building a Complete Wallpaper App: bit.ly/30UN8zV
👉 Build Tic Tac Toe in Android: bit.ly/30goxW0
❤️❤️ Thank You All for the Love and Support ❤️❤️
#KtorTutorial
#KotlinBackend
#KtorRESTfulAPI - Наука та технологія
Update:
I've added more API calls in the project. Covered all CRUD operations, and you can also find some samples of SQL Joins with Expose.
You can get this Postman Collection for all the APIs: www.getpostman.com/collections/a8fef1cd9194ae4a2ab9
The project is updated on GitHub and is open for contributions. Thank You
Excellent tutorial. Very straightforward and easy to follow!
Very well articulated Thank you so much for a wonderfull sesssion. KEEP ROCKING!!!
Amazing tutorial! Thank you
You are my saviour, thank you for this tutorial.
Mine too
Awesome video quality!
Awesome content!
Amaizing tutorial, kindly do more of ktor server side project.
Thank you very much for this tutorial
ما شاء الله ربنا يبارك فيك وبك ويرزقنا ويرزقك كل خير ياارب thaaanks
it was reallly helpful bro
Great content 👍
For my project, which one is better to use jwt based subscription or session?
excellent much simpler than spring boot. Perhaps it is necessary to add user privileges to the registration mode.
thanks Bilal
Hello, I am glad to have your tutorial can you please also give us way of developing ktor server in docker compose with auto reload
Sir kya Google Play Store se video recorder app se video record karte hai kya vo video app developer ke pass bhi save hota hai kya
Please reply.....
can you please help me getting some basics . actually i am new to API development. recently i just started learning spring boot kotlin. and since ktor is recently booming to the peak, i wanna start leaning it. but, it would be better if that learning path is from beginner to pro based.
How can I host it? Does shared hosting like Godaddy support this?
hello sir, i have a basic app requirements to create an app that work in all platforms, the app must work offline and the data is backup time to time to the cloud.
Sir i am thanking to create an android app with kotlin and ktor to create server and client in the same app and create ktor server to serve the server and web client for other platforms that are connected to the same local network to access the server with local ip address.
My question is, is it possible to host kotlin web server from android that serve the same sqlite database and other resources that android app uses?
Please help to start my project.
thanks.
Hey can we make an e commerce app using ktor? Pls answer... Like all the things authentication/users/orders/ how to handle complex relationship among tables ? It's same as SQL ?
Yes you can.
Expected one
Amazing
are you gonna do a series aswell on how to implement this API into an actual login app? im loving this so far learned allot from it.
Yes, the app tutorial will come soon. I am working on it
@@SimplifiedCoding great, i cant wait to use all this knowledge to create my own app :D
Sir I watched most of your videos they all are very good and precise but in this tutorial the project is not getting synced properly
Thanks
Hey, nice tutorial. One thing though.. You shouldn't hardcode the secret key. It should be in the environment variables for security purposes
I am also very new in building backend. So sorry for this mistake. 😀
Great
How to deploy over aws
What about GraphQL???
how to upload imageon ktor server side. plz hep
I was unnable to see ktor plugin in intellij idea Community Edition!! im the only one facing this????
is ktor kills springBoot?
Please the login doesn't authenticate user details....email and password.(I have done that following your steps to help the vision so, can i share it here?)
Check the source code. The link is in the description. I have also added the login code there
Great project!
sir please tell me where is video on it's android part - my story app?
please share it if it's done.
yeah found it- ua-cam.com/play/PLk7v1Z2rk4hiCeUglEmnzkyiryl5YHG76.html
can we use android studio for Ktor?
As ItelliJ IDEA isn't free
Community Edition is Free and I also used community edition here
@@SimplifiedCoding yes thanks. Already started on community edition.
When will you add code here, will help us more to understand the flow.
Here is the source code: simplifiedcoding.in/download/25
@@SimplifiedCoding Thanks
when will you make a tutorial about jetpack compose app using ktor as backend
Check the latest video of the channel
hey bro you are doing a very good job but if I were in your place I would make a video about ktor client rather than the server-side, I am saying this because as I see you are focusing in android dev
Yeah I will cover it too.
android app for this api video link please
Wow..
internal server error if try downloading the source code
Sorry for this I will fix it soon. You should try after tomorrow.
try now it should work
@@SimplifiedCoding, Thank you.
No pls do it on native kotlin , not in jetpack pls....🙏
Native kotlin?
@@SimplifiedCoding I mean use kotlin 😅 with xml
Sir I am getting an error when we open the project in intellij
Try cloning the project directory from repository. Also if you can show the screenshot of the error I may help.
@@SimplifiedCoding sir can I get your mail where I can share you the complete error
who can code this function for me please
override suspend fun loginUser(email: String, password: String): BaseResponse {
TODO("Not yet")
}
I will post the source code will all the remaining API calls. Stay Tuned :)
@@SimplifiedCoding thank youu
@@youssefbenlahouel4423 Here is the source code with the loginUser function completed: simplifiedcoding.in/download/25
@@SimplifiedCoding thank youuuuuu
քʀօʍօֆʍ
Nothing interesting. I did not like it. very disappointing.
Please explain what are your expectations :)
1.25x
worst tutorial ever not even telling where to get the dependencies from and also the hikari config and what is it
You can get the dependencies from the source code. The repository link is in the description.