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
  • Наука та технологія

КОМЕНТАРІ • 74

  • @SimplifiedCoding
    @SimplifiedCoding  2 роки тому +2

    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

  • @umeboshidame
    @umeboshidame Рік тому

    Excellent tutorial. Very straightforward and easy to follow!

  • @sathyababu9130
    @sathyababu9130 Рік тому

    Very well articulated Thank you so much for a wonderfull sesssion. KEEP ROCKING!!!

  • @cansuyeksanaktas
    @cansuyeksanaktas 2 роки тому +1

    Amazing tutorial! Thank you

  • @phinner4270
    @phinner4270 2 роки тому +1

    You are my saviour, thank you for this tutorial.

  • @franciskiiru4128
    @franciskiiru4128 Рік тому

    Awesome video quality!
    Awesome content!

  • @themindsetgarage
    @themindsetgarage 2 роки тому

    Amaizing tutorial, kindly do more of ktor server side project.

  • @rijalmyd
    @rijalmyd 2 роки тому

    Thank you very much for this tutorial

  • @digitalluxury2033
    @digitalluxury2033 Рік тому

    ما شاء الله ربنا يبارك فيك وبك ويرزقنا ويرزقك كل خير ياارب thaaanks

  • @gurwindersingh-by5iw
    @gurwindersingh-by5iw Рік тому

    it was reallly helpful bro

  • @m77mo65
    @m77mo65 2 роки тому

    Great content 👍

  • @daniyar2718
    @daniyar2718 Рік тому

    For my project, which one is better to use jwt based subscription or session?

  • @managersoft4512
    @managersoft4512 2 роки тому

    excellent much simpler than spring boot. Perhaps it is necessary to add user privileges to the registration mode.

  • @Rohan-by5cp
    @Rohan-by5cp 2 роки тому

    thanks Bilal

  • @mdsadiqueinam9794
    @mdsadiqueinam9794 2 роки тому

    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

  • @harishlodha8794
    @harishlodha8794 2 роки тому

    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.....

  • @testdev1804
    @testdev1804 3 місяці тому +1

    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.

  • @thomasjoseph9982
    @thomasjoseph9982 2 роки тому

    How can I host it? Does shared hosting like Godaddy support this?

  • @Basirafeef
    @Basirafeef Рік тому

    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.

  • @surajtutz5742
    @surajtutz5742 2 роки тому +1

    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 ?

  • @vengateshm2122
    @vengateshm2122 2 роки тому

    Expected one

  • @leonidas_30052
    @leonidas_30052 2 роки тому

    Amazing

  • @defiledgamingnl2284
    @defiledgamingnl2284 2 роки тому

    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.

    • @SimplifiedCoding
      @SimplifiedCoding  2 роки тому

      Yes, the app tutorial will come soon. I am working on it

    • @defiledgamingnl2284
      @defiledgamingnl2284 2 роки тому

      @@SimplifiedCoding great, i cant wait to use all this knowledge to create my own app :D

  • @ArshadAli-hd4we
    @ArshadAli-hd4we Рік тому

    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

  • @lord6211
    @lord6211 2 роки тому

    Thanks

  • @tyler07830
    @tyler07830 2 роки тому +3

    Hey, nice tutorial. One thing though.. You shouldn't hardcode the secret key. It should be in the environment variables for security purposes

    • @SimplifiedCoding
      @SimplifiedCoding  2 роки тому +4

      I am also very new in building backend. So sorry for this mistake. 😀

  • @tonmoykhan7153
    @tonmoykhan7153 2 роки тому

    Great

  • @sw_a_ppy
    @sw_a_ppy 5 місяців тому

    How to deploy over aws

  • @franklinjoney7941
    @franklinjoney7941 2 роки тому +1

    What about GraphQL???

  • @muhammadhassaansiddiqi8586
    @muhammadhassaansiddiqi8586 Рік тому

    how to upload imageon ktor server side. plz hep

  • @GiriThangellapally
    @GiriThangellapally Рік тому

    I was unnable to see ktor plugin in intellij idea Community Edition!! im the only one facing this????

  • @techsterz7358
    @techsterz7358 2 роки тому

    is ktor kills springBoot?

  • @iam-peacemaker
    @iam-peacemaker 2 роки тому

    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?)

    • @SimplifiedCoding
      @SimplifiedCoding  2 роки тому

      Check the source code. The link is in the description. I have also added the login code there

  • @G__TejasMahadik
    @G__TejasMahadik 10 днів тому

    Great project!
    sir please tell me where is video on it's android part - my story app?
    please share it if it's done.

    • @tejasmahadik3233
      @tejasmahadik3233 2 дні тому

      yeah found it- ua-cam.com/play/PLk7v1Z2rk4hiCeUglEmnzkyiryl5YHG76.html

  • @pritishsahoo5467
    @pritishsahoo5467 2 роки тому +1

    can we use android studio for Ktor?
    As ItelliJ IDEA isn't free

    • @SimplifiedCoding
      @SimplifiedCoding  2 роки тому +1

      Community Edition is Free and I also used community edition here

    • @pritishsahoo5467
      @pritishsahoo5467 2 роки тому +1

      @@SimplifiedCoding yes thanks. Already started on community edition.

  • @lokeshgadekar8539
    @lokeshgadekar8539 2 роки тому +2

    When will you add code here, will help us more to understand the flow.

  • @fatiqhussnain8399
    @fatiqhussnain8399 8 місяців тому

    when will you make a tutorial about jetpack compose app using ktor as backend

  • @mobileboy712
    @mobileboy712 2 роки тому

    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

  • @G__TejasMahadik
    @G__TejasMahadik 11 днів тому

    android app for this api video link please

  • @MAli-ok1gq
    @MAli-ok1gq 2 роки тому

    Wow..

  • @junlapunete1602
    @junlapunete1602 7 місяців тому +1

    internal server error if try downloading the source code

  • @surajtutz5742
    @surajtutz5742 2 роки тому +2

    No pls do it on native kotlin , not in jetpack pls....🙏

  • @ArshadAli-hd4we
    @ArshadAli-hd4we Рік тому

    Sir I am getting an error when we open the project in intellij

    • @SimplifiedCoding
      @SimplifiedCoding  Рік тому

      Try cloning the project directory from repository. Also if you can show the screenshot of the error I may help.

    • @ArshadAli-hd4we
      @ArshadAli-hd4we Рік тому

      @@SimplifiedCoding sir can I get your mail where I can share you the complete error

  • @youssefbenlahouel4423
    @youssefbenlahouel4423 2 роки тому +1

    who can code this function for me please
    override suspend fun loginUser(email: String, password: String): BaseResponse {
    TODO("Not yet")
    }

    • @SimplifiedCoding
      @SimplifiedCoding  2 роки тому +2

      I will post the source code will all the remaining API calls. Stay Tuned :)

    • @youssefbenlahouel4423
      @youssefbenlahouel4423 2 роки тому +1

      @@SimplifiedCoding thank youu

    • @SimplifiedCoding
      @SimplifiedCoding  2 роки тому +1

      @@youssefbenlahouel4423 Here is the source code with the loginUser function completed: simplifiedcoding.in/download/25

    • @youssefbenlahouel4423
      @youssefbenlahouel4423 2 роки тому

      @@SimplifiedCoding thank youuuuuu

  • @deanwilkerson5681
    @deanwilkerson5681 2 роки тому

    քʀօʍօֆʍ

  • @pradeepkumarreddykondreddy7048
    @pradeepkumarreddykondreddy7048 2 роки тому +1

    Nothing interesting. I did not like it. very disappointing.

  • @abinandhanjain9254
    @abinandhanjain9254 2 роки тому

    1.25x

  • @iconic6524
    @iconic6524 Рік тому

    worst tutorial ever not even telling where to get the dependencies from and also the hikari config and what is it

    • @SimplifiedCoding
      @SimplifiedCoding  Рік тому

      You can get the dependencies from the source code. The repository link is in the description.