Live-coding a web server with Ktor
summary
Live-coding builds a working HTTP POST /random with Ktor 2 (CIO engine), Ktor Server routing and content-negotiation, and a Ktor Client test that asserts HTTP 201 and a JSON body serialized with kotlinx-serialization. Project starts from a design-first OpenAPI spec, generates models, and adds validator rules so requests require at least two names. Tests run locally and the demo client shows responses but the onstage random selection behaves inconsistently.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:08Purpose
- 1:40Design first approach
- 3:00Build system
- 8:10Routine
- 8:45PostRandom
- 9:30PostRequest
- 13:20PostRandom Request
- 16:00Validator








