Ktor to your heart’s content: easy mobile backends in Kotlin
summary
Shows how to build a real REST JSON backend for a fictional PushBeat IoT app using Ktor + coroutines, Kotlinx.serialization, Logback and a war-based Gradle setup, then run locally and App Engine deploy to Google Cloud. Demonstrates routing, HTML via kotlinx.html, basic HTTP auth, locations for type-safe paths, compression, status pages and content negotiation. Code targets Kotlin 1.3 (update to 1.4 pending) and the example compiles and deploys to App Engine as shown. Modular Ktor features are used end-to-end.
AI-written summary · about
chapters (14)
- 0:00Introduction to backend development
- 6:00Choosing REST, GraphQL, or RPC
- 7:06Introducing Ktor framework
- 10:19PushBit IoT backend scenario
- 11:49Setting up Google Cloud SDK
- 14:13Configuring Ktor with App Engine
- 18:27Project structure and dependencies
- 20:38Ktor configuration and features
- 26:17Routing and request handling
- 30:32Rendering HTML with KotlinX
- 32:15Using locations for type-safe routing
- 33:41Implementing authentication
- 34:23Deploying to App Engine
- 34:46Q&A session
related talks
28mBackend Engineering for Android Developers
36mMobile Backend in Kotlin
31mKotlin beyond Android
52mKotlin Backend Development 6 Yrs Recap. The Good, the Bad and the Ugly
18mServer-Side Development with Kotlin
23mThe Art of KMP: how I learned backend development with Kotlin and why you should too
03h 13mKotlin 1.4 Online Event, Day 4: server-side Kotlin
36mYou will 💙 becoming a fullstack develope…
