Live-coding a Web Server with Ktor
summary
A live-coding session that builds a Ktor 3.6.6 web server (Gradle Kotlin) using the CIO engine. It wires JSON content negotiation/serialization, implements a GET "/" returning "hello Strasbourg" with a client test, a POST "/random" that accepts PostRandomRequest { names: List<String> } and returns PostRandomResponse { result: String } with unit tests, and a simple "/echo" WebSocket that echoes text frames; all examples compile and tests pass.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 2:11Ktor overview
- 4:22Project setup
- 8:13Project config
- 9:37GET endpoint
- 12:52GET unit test
- 13:12POST endpoint
- 16:46POST unit test
- 18:17WebSocket demo
- 21:35Conclusion & Q&A








