Ktor for Mobile Developers: Fear the server no more!
summary
Ktor with Netty engine is used to build a small REST API that actually talks to Gmail and Google Tasks, using Ktor with Netty engine, Retrofit and mocchi for HTTP and JSON, and OAuth 2 authentication for web sign‑in. The demo implements GETs for threads and tasks, a POST to create a task, a simple HTML dashboard, and deployment to Google Cloud. The claim: a working microservice in ~350 lines that reuses client logic and successfully runs.
AI-written summary · about
chapters (29)
- 0:00Intro
- 0:36Server side code? Me?
- 2:33The paradox of choice
- 3:14Something familiar
- 3:50Something lightweight and simple
- 4:06Enter Ktor!
- 4:43A Google "Dashboard"
- 5:35Bonus: WebApp!
- 5:45Let's build the RESTful API!
- 6:58Assumptions
- 7:12You've authenticated to Google's OAuth2
- 7:40Ktor's basic structure
- 8:08Application Engine
- 9:55Application Environment
- 10:07application.conf
- 12:46Application CallPipeline
- 14:352. Monitoring
- 14:51Features
- 15:22Default Headers Feature
- 19:46Let's get some data
- 23:03GET Gtasks Data
- 28:52Authentication
- 29:11OAuth 2
- 33:41Web: showing the data
- 35:46Web: posting data
- 37:53Deployment
- 38:43XML config files
- 39:21Cloud projects cost money!
- 39:54Wrap it up!








