Learning Ktor In 7 Days (server side Kotlin)

  Рет қаралды 28,399

Cody Engel

Cody Engel

Күн бұрын

Пікірлер: 53
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
What service are you going to build with ktor?
@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.
@erdemserhat
@erdemserhat 10 ай бұрын
@@Basirafeef everything you mentioned is possible, even easier with ktor
@kennygunderman
@kennygunderman 3 жыл бұрын
4:10 AYO DATS ME. But for real, this is insane quality 👀 nicely done my man
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
Thanks man that means a lot ☺️
@DorianDevelops
@DorianDevelops 3 жыл бұрын
Great video!!! It's been a while since I've done anything with Kotlin. Might have to check out ktor!
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
Thanks Dorian. Ktor is pretty awesome, I was learning Golang for service development but I think ktor fits the bill for most things now. Startup time is the only downside, I’d probably still use Go for a service that I want to scale up and down relatively quickly
@tadiwashangwa4931
@tadiwashangwa4931 4 күн бұрын
this video is amazing, I like how you were also showing your code and everything!
@edboss36
@edboss36 Жыл бұрын
This is the best programming video I've seen on youtube. You explained your thought process and how to follow tutorials the right way. I was actually trying to find videos like yours where an expert shares their real experience instead of giving general advice so thanks
@kyleMcBurnett
@kyleMcBurnett Жыл бұрын
Thanks for the inspiration.
@CodyEngelCodes
@CodyEngelCodes Жыл бұрын
Kyle thank you so much for the super thanks! I've been taking a bit of a break from KZbin as there has been some personal stuff going on but please feel free to drop by the Discord if you haven't already. 🙇‍♂️
@hinocenciopaulo
@hinocenciopaulo 2 жыл бұрын
Pretty good video my man, thanks for that. You just got a new subscriber.
@CodyEngelCodes
@CodyEngelCodes 2 жыл бұрын
Awesome, thank you!
@timurodintsev2832
@timurodintsev2832 3 жыл бұрын
Loved ur video. Thx man! Good luck in future!
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
Thank you for the words of encouragement Timur :)
@chadmalla
@chadmalla 3 жыл бұрын
Hi Cody, great quality videos! Next video, if not already made, is tips on the path of SDE 1 to senior like what you should be doing at work and off-work, habits, etc.
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
Great suggestion!
@AntonArhipov
@AntonArhipov 3 ай бұрын
nicely done!
@danielhmorgan
@danielhmorgan 3 жыл бұрын
Nice. Loved the fast tempo.
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
Thanks Danny, I tried to make it a bit quicker so happy it worked ☺️
@MateuszPerlak
@MateuszPerlak 3 жыл бұрын
Couple thing I added to my Ktor environments is Koin for DI and JetBrains - Exposed Framework for Database connection. Kotlin makes is so easy to integrate all of it. Also couple added extension methods make it easy to read path's parameter values or query values.
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
Nice! Dependency injection is on my todo list, I was probably going with Dagger but still need a better feel for what they might look like.
@MateuszPerlak
@MateuszPerlak 3 жыл бұрын
@@CodyEngelCodes I found it Koin to be easier to understand and use.
@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.
@brianevans4
@brianevans4 3 жыл бұрын
Very nice video. I tried to learn ktor yesterday, and after 6 failed attempts, I almost gave up. Just kept running into errors that I couldn't seem to solve. Gonna give it another try after watching this video
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
You can do it!
@PostMeridianLyf
@PostMeridianLyf 2 жыл бұрын
Thank you for this run down. Gives me some hope lol
@CodyEngelCodes
@CodyEngelCodes 2 жыл бұрын
You are welcome!
@murlikrishnat29
@murlikrishnat29 3 жыл бұрын
Great video...How do we create preflight request? Can you elaborate more on how to handle CORS in ktor?
@DaveJacobseniOS
@DaveJacobseniOS 3 жыл бұрын
Beast!
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
Thanks 🙏
@scienceschool4998
@scienceschool4998 3 жыл бұрын
How can I access my API from anywhere on the web except on my localhost?
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
Deploy it to a server, check out my video on GitHub Actions because that's where I set up a CI pipeline to deploy my API automatically to Google Cloud.
@DevlogBill
@DevlogBill Жыл бұрын
Hi Cody, I played around with Kotlin and I fell in love with the language. It is strongly typed and it feels like JavaScript for some reason. But for the past 3 months I've been using Django for my backend. I've been thinking about learning Ktor because I am interested in Android Development with Kotlin. To be honest Ktor sounds more complicated than Django. I was thinking are you able to create an Android app with Kotlin and Android Studio and afterwards create the API with Django for an Android project? Or would you recommend learning Ktor for Android Development? Thanks.
@CodyEngelCodes
@CodyEngelCodes Жыл бұрын
If Django suits your needs then by all means make use of it. There's no need to use ktor for an Android project, there are some benefits with code reuse and such but doesn't make sense if it'll over complicate your project.
@DevlogBill
@DevlogBill Жыл бұрын
@@CodyEngelCodes I never used another back end library or framework before Django is my first. So far I noticed if you learn the Django way of doing things it is not so complicated. I haven't reached this point yet for my project but I think the hardest part is introducing your API to you're Android app. I guess I will figure that out once I reach that point. But thanks for sharing you're thoughts on Ktor looks interested but more complicated than Django.
@storypur
@storypur 3 жыл бұрын
Is Ktor and Kotlin good to develop large-scale android application?
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
I haven't used ktor in an Android application but I don't see why you couldn't. Kotlin is definitely the way to go for modern Android development though.
@kawshiqahmed6395
@kawshiqahmed6395 3 жыл бұрын
There have a specific plugin for ktor in intellij idea.
@tunisiaFANS
@tunisiaFANS 3 жыл бұрын
Thanks for the video man ❤️✌️ How is ktor so far? Did you use any kind of user authentification in your server? Hope you do more videos like this one ✌️✌️
@libintantony
@libintantony 3 жыл бұрын
Can u explain how to handle refresh token in ktor???
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
I'd recommend checking out the authentication and authorization section on the ktor docs: ktor.io/docs/auth.html#bearer
@davidconnelly
@davidconnelly 2 жыл бұрын
Okay. Very interesting. Great video. Your skills are awesome. Here are a couple of comments that spring to mind: I think Kotlin is well positioned to become a very popular general purpose language that could be used for pretty much anything. This is definitely one to watch. Second point: I see this implementation of Kotlin as being in direct competition to something like NodeJS. Finally, the demo was incredibly impressive for sure. However, there are two things that would stop me from jumping in with KTOR; 1). I would have concerns about it potentially having a shortage of libraries (I'm sure that won't always be the case). 2). Reverting to VueJS seems like a step backwards to me. The 'javascript-type' websites are commercially weak because they tend to perform poorly on search engines. Actually, I think that it's a sort of out-dated way to do web development. Nevertheless, I do want to stress that I'm super impressed by what you've done here. I'd like to see KTor doing well. It looks very interesting indeed. Cheers!
@CodyEngelCodes
@CodyEngelCodes 2 жыл бұрын
Thanks David! I'll have to investigate options to avoid using VueJS, I've been trying to avoid ReactJS but maybe it's time for me to just suck it up and learn it 😅
@camo5768
@camo5768 3 жыл бұрын
how can i self host this?
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
You could use a service like DynDNS on a home server and then point your domain there.
@MrRahulmalik
@MrRahulmalik 3 жыл бұрын
can you make a video on creating a project using ktor and kotlin
@CodyEngelCodes
@CodyEngelCodes 3 жыл бұрын
I can try to get around to it. I do want to have a dedicated ktor course in the future.
@MrRahulmalik
@MrRahulmalik 3 жыл бұрын
@@CodyEngelCodes Awesome!
@renascienza.bazarclub
@renascienza.bazarclub 2 жыл бұрын
I learned Ktor in about two days, and Javalin in just one day, and applied in projects immediately. Is not a steep learning curve.
@CodyEngelCodes
@CodyEngelCodes 2 жыл бұрын
Nice job.
@hamuelagulto796
@hamuelagulto796 8 ай бұрын
7 days seems long. you can learn it in a day
@kafka5973
@kafka5973 6 ай бұрын
hey can u please suggest me how and from where I can learn ktor framework for a beginner like me?
Supercharge your GraphQL with Ktor and GraalVM by Derek Kuc
44:18
Kotlin by JetBrains
Рет қаралды 2,9 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Java vs Kotlin for Android Development in 2022
14:56
Cody Engel
Рет қаралды 33 М.
Put your Ktor Microservices on Kubernetes without a JVM! by Bjorn van der Laan
18:58
Theo Doesn't Write Unit Tests (This Is Why You Should)
13:01
Cody Engel
Рет қаралды 9 М.
Ktor and Dependency Injection
21:02
Pairing with Duncan
Рет қаралды 1,3 М.
How to Kotlin - from the lead Kotlin language designer (Google I/O '18)
39:24
Introduction to Ktor by Tomas Zezula
31:32
Kotlin Server Squad
Рет қаралды 1,3 М.