Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Kotlin for API (with Ktor)

132 views

Published on

受邀至 GDG Taichung 分享 Kotlin 在 Web (API) 方面的應用,並以 Ktor 搭配 Exposed 示範怎麼實作一個 CRUD 的 API。

Published in: Internet
  • Be the first to comment

Kotlin for API (with Ktor)

  1. 1. Kotlin for API — (Shengyou Fan) GDG Taichung Kotlin Everywhere 2019/10/19 with Ktor
  2. 2. — • Developer Advocate • Backend Developer • Open Source Community Organizer
  3. 3. Kotlin https://youtu.be/hg8oYJ8Ez8s • General-purpose • Static typing • OOP + FP • Developed by JetBrains • Open Source (Apache 2.0) https://kotlinlang.org/ Kotlin —
  4. 4. Kotlin — Browser Kotlin/JS Server Kotlin/JVM iOS Kotlin/Native Android Kotlin/JVM
  5. 5. Kotlin — Server Database Client Kotlin/JVM
  6. 6. Ktor — https://ktor.io/ • Web Framework • Asynchronous • Servers + Clients • Developed by JetBrains • Open Source (Apache 2.0)
  7. 7. — OpenJDK 8+ IntelliJ IDEA Ktor Plugin
  8. 8. OpenJDK — $ curl -s "https://get.sdkman.io" | bash $ source "$HOME/.sdkman/bin/sdkman-init.sh" $ sdk install java $ sdk list java $ sdk current java $ sdk use java <version> $ sdk default java <version> $ sdk upgrade java https://sdkman.io/
  9. 9. IntelliJ IDEA — ToolBox App
  10. 10. — https://plugins.jetbrains.com
  11. 11. Ktor Plugin — Ktor Plugin Ktor
  12. 12. — Ktor CRUD API • • Routing • Exposed • JSPN API • CRUD
  13. 13. Ktor Feature — Client Ktor App HTTP Server Feature Feature Feature
  14. 14. — • Ktor • Application Call Request & Response • Routing • Exposed DB • JSON API
  15. 15. — https://github.com/shengyou/20191019-kotlin-for-api
  16. 16. — Talking Kotlin http://talkingkotlin.com/ktor-with-ryan-harter/Ktor https://ktor.io/servers/index.html KotlinConf https://youtu.be/V4PS3IjIzlw
  17. 17. ktor.guide Ktor —
  18. 18. Ktor API (Shengyou) shengyou.fan@jetbrains.com Q&A — Kotlin for API

×