From the course: Transitioning from Java to Kotlin
Unlock the full course today
Join today to access over 24,300 courses taught by industry experts.
Creating a new Ktor project
From the course: Transitioning from Java to Kotlin
Creating a new Ktor project
- [Instructor] You're ready to go all in with Kotlin for your next server site application. So where do you start? If you're looking for something built from the ground up with Kotlin that takes advantage of all its language features, then Ktor is a great choice. With that in mind, let's create a new Ktor project using IntelliJ, so we can start exploring this framework in more depth. For a quick refresher, Ktor is a Kotlin framework for building client server applications. It's built with Kotlin from the ground up by JetBrains, the creators of the Kotlin language. Because of this, Ktor takes full advantage of Kotlin language features, such as higher order functions, type safe builders and coroutines. Additionally, Ktor supports Kotlin Multiplatform applications and can be used across JVM, Android, JavaScript and other targets. So, how do we create a new Ktor project? If you're using IntelliJ IDEA…
Contents
-
-
-
-
-
-
-
(Locked)
Creating a new Ktor project6m 30s
-
(Locked)
Adding your first route5m 33s
-
(Locked)
Testing your local service6m 41s
-
(Locked)
Adding status pages7m 32s
-
(Locked)
Storing a list of products5m 42s
-
(Locked)
Returning typed responses11m 57s
-
(Locked)
Adding new products5m 38s
-
(Locked)
Authenticating routes7m 57s
-
(Locked)
Challenge: Return all active orders1m 35s
-
(Locked)
Solution: Return all active orders7m 4s
-
(Locked)
-