~/talk

Live-coding a web server with Ktor

Talkat Android Makers 2022 · 2022-04-25..04-26· [kotlin]
slides:none on file

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

  1. 0:00Introduction
  2. 1:08Purpose
  3. 1:40Design first approach
  4. 3:00Build system
  5. 8:10Routine
  6. 8:45PostRandom
  7. 9:30PostRequest
  8. 13:20PostRandom Request
  9. 16:00Validator
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.