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.
@erdemserhat10 ай бұрын
@@Basirafeef everything you mentioned is possible, even easier with ktor
@kennygunderman3 жыл бұрын
4:10 AYO DATS ME. But for real, this is insane quality 👀 nicely done my man
@CodyEngelCodes3 жыл бұрын
Thanks man that means a lot ☺️
@DorianDevelops3 жыл бұрын
Great video!!! It's been a while since I've done anything with Kotlin. Might have to check out ktor!
@CodyEngelCodes3 жыл бұрын
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
@tadiwashangwa49314 күн бұрын
this video is amazing, I like how you were also showing your code and everything!
@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 Жыл бұрын
Thanks for the inspiration.
@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. 🙇♂️
@hinocenciopaulo2 жыл бұрын
Pretty good video my man, thanks for that. You just got a new subscriber.
@CodyEngelCodes2 жыл бұрын
Awesome, thank you!
@timurodintsev28323 жыл бұрын
Loved ur video. Thx man! Good luck in future!
@CodyEngelCodes3 жыл бұрын
Thank you for the words of encouragement Timur :)
@chadmalla3 жыл бұрын
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.
@CodyEngelCodes3 жыл бұрын
Great suggestion!
@AntonArhipov3 ай бұрын
nicely done!
@danielhmorgan3 жыл бұрын
Nice. Loved the fast tempo.
@CodyEngelCodes3 жыл бұрын
Thanks Danny, I tried to make it a bit quicker so happy it worked ☺️
@MateuszPerlak3 жыл бұрын
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.
@CodyEngelCodes3 жыл бұрын
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.
@MateuszPerlak3 жыл бұрын
@@CodyEngelCodes I found it Koin to be easier to understand and use.
@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.
@brianevans43 жыл бұрын
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
@CodyEngelCodes3 жыл бұрын
You can do it!
@PostMeridianLyf2 жыл бұрын
Thank you for this run down. Gives me some hope lol
@CodyEngelCodes2 жыл бұрын
You are welcome!
@murlikrishnat293 жыл бұрын
Great video...How do we create preflight request? Can you elaborate more on how to handle CORS in ktor?
@DaveJacobseniOS3 жыл бұрын
Beast!
@CodyEngelCodes3 жыл бұрын
Thanks 🙏
@scienceschool49983 жыл бұрын
How can I access my API from anywhere on the web except on my localhost?
@CodyEngelCodes3 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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.
@storypur3 жыл бұрын
Is Ktor and Kotlin good to develop large-scale android application?
@CodyEngelCodes3 жыл бұрын
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.
@kawshiqahmed63953 жыл бұрын
There have a specific plugin for ktor in intellij idea.
@tunisiaFANS3 жыл бұрын
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 ✌️✌️
@libintantony3 жыл бұрын
Can u explain how to handle refresh token in ktor???
@CodyEngelCodes3 жыл бұрын
I'd recommend checking out the authentication and authorization section on the ktor docs: ktor.io/docs/auth.html#bearer
@davidconnelly2 жыл бұрын
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!
@CodyEngelCodes2 жыл бұрын
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 😅
@camo57683 жыл бұрын
how can i self host this?
@CodyEngelCodes3 жыл бұрын
You could use a service like DynDNS on a home server and then point your domain there.
@MrRahulmalik3 жыл бұрын
can you make a video on creating a project using ktor and kotlin
@CodyEngelCodes3 жыл бұрын
I can try to get around to it. I do want to have a dedicated ktor course in the future.
@MrRahulmalik3 жыл бұрын
@@CodyEngelCodes Awesome!
@renascienza.bazarclub2 жыл бұрын
I learned Ktor in about two days, and Javalin in just one day, and applied in projects immediately. Is not a steep learning curve.
@CodyEngelCodes2 жыл бұрын
Nice job.
@hamuelagulto7968 ай бұрын
7 days seems long. you can learn it in a day
@kafka59736 ай бұрын
hey can u please suggest me how and from where I can learn ktor framework for a beginner like me?