~/talk

Codable Routing with Kitura

Talkat try! Swift Tokyo 2018 · 2018-03-01..03-03· [serverless, swift]
slides:none on file

Kitura 2.0 takes JSON duties off handlers so routes accept and return Swift types directly, cutting boilerplate and leaving only business logic. Examples implement GET /commits, POST /commit and GET by author using JSONEncoder/JSONDecoder and handler signatures that receive Codable types. KituraKit enables sharing the same model definitions with iOS, and a Swift query ORM demo shows saving via Model.save. A client library encapsulates encode + network + decode and it works end-to-end.

AI-written summary · about

  1. 0:00Intro
  2. 0:31About me
  3. 1:58A Javascript example
  4. 3:27Foundation Pre-Swift 4
  5. 4:04SwiftyJSON relief
  6. 4:36Enter Swift 4
  7. 5:07Conforming to Encodable
  8. 5:55Conforming to Decodable
  9. 6:05Decoding
  10. 6:20There's a lot more to it ...
  11. 10:03GET all commits
  12. 13:28Codable Routing
  13. 14:29POST a Commit
  14. 14:53Codable Query Parameters
  15. 15:35Saving to a database
  16. 16:07Swift-Kuery ORM
  17. 16:40In a parallel universe ...
  18. 17:26Kiturakit
  19. 18:39End-to-End
  20. 19:21Sharing Code
  21. 19:48Get your hands dirty
~/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.