~/talk

Ktor for Mobile Developers: Fear the server no more!

Talkat KotlinConf 2019 · 2019-12-04..12-06· [serverless, kotlin]
name:Dan Kim
links:none on file
slides:none on file

Ktor with Netty engine is used to build a small REST API that actually talks to Gmail and Google Tasks, using Ktor with Netty engine, Retrofit and mocchi for HTTP and JSON, and OAuth 2 authentication for web sign‑in. The demo implements GETs for threads and tasks, a POST to create a task, a simple HTML dashboard, and deployment to Google Cloud. The claim: a working microservice in ~350 lines that reuses client logic and successfully runs.

AI-written summary · about

  1. 0:00Intro
  2. 0:36Server side code? Me?
  3. 2:33The paradox of choice
  4. 3:14Something familiar
  5. 3:50Something lightweight and simple
  6. 4:06Enter Ktor!
  7. 4:43A Google "Dashboard"
  8. 5:35Bonus: WebApp!
  9. 5:45Let's build the RESTful API!
  10. 6:58Assumptions
  11. 7:12You've authenticated to Google's OAuth2
  12. 7:40Ktor's basic structure
  13. 8:08Application Engine
  14. 9:55Application Environment
  15. 10:07application.conf
  16. 12:46Application CallPipeline
  17. 14:352. Monitoring
  18. 14:51Features
  19. 15:22Default Headers Feature
  20. 19:46Let's get some data
  21. 23:03GET Gtasks Data
  22. 28:52Authentication
  23. 29:11OAuth 2
  24. 33:41Web: showing the data
  25. 35:46Web: posting data
  26. 37:53Deployment
  27. 38:43XML config files
  28. 39:21Cloud projects cost money!
  29. 39:54Wrap it up!
~/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.