~/talk

Live-coding a Web Server with Ktor

TalkinFrenchat Devfest Strasbourg 2023 · on Wednesday, 2023-11-15· [kotlin, web-platform]
slides:none on file

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

  1. 0:00Introduction
  2. 2:11Ktor overview
  3. 4:22Project setup
  4. 8:13Project config
  5. 9:37GET endpoint
  6. 12:52GET unit test
  7. 13:12POST endpoint
  8. 16:46POST unit test
  9. 18:17WebSocket demo
  10. 21:35Conclusion & Q&A
~/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.