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.

通过 Ktor 迅速打造以 Kotlin 为核心的后端服务应用

91 views

Published on

于 COSCon'19 发表如何以 Ktor 框架迅速打造成 Kotlin 为核心的后端服务应用。

Published in: Internet
  • Be the first to comment

  • Be the first to like this

通过 Ktor 迅速打造以 Kotlin 为核心的后端服务应用

  1. 1. Ktor Kotlin — (Shengyou Fan) COSCon'19 2019/11/03
  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. Application Call — Client Ktor App HTTP Server Feature Feature Feature
  13. 13. — • Kotlin • Ktor • • Application Call Request & Response • Routing • Exposed DB • • API
  14. 14. — Talking Kotlin http://talkingkotlin.com/ktor-with-ryan-harter/Ktor https://ktor.io/servers/index.html KotlinConf https://youtu.be/V4PS3IjIzlw
  15. 15. — https://github.com/shengyou/20191103-ktor-introduction
  16. 16. ktor.guide Ktor —
  17. 17. (Shengyou) shengyou.fan@jetbrains.com — Ktor Kotlin

×