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 Web (with Ktor)

129 views

Published on

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

Published in: Internet
  • Be the first to comment

Kotlin for Web (with Ktor)

  1. 1. Kotlin for Web — (Shengyou Fan) GDG Hsinchu Kotlin Everywhere 2019/10/17 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 • • Routing • Templating • Exposed • CRUD
  13. 13. Ktor Feature — Client Ktor App HTTP Server Feature Feature Feature
  14. 14. — • Ktor • Application Call Request & Response • Routing • HTML DSL Static Content Templating • Exposed DB • Redirect
  15. 15. — https://github.com/shengyou/20191017-kotlin-for-web
  16. 16. — Talking Kotlin http://talkingkotlin.com/ktor-with-ryan-harter/ FreeMarker https://freemarker.apache.org/docs/dgui_quickstart.htmlKtor https://ktor.io/servers/index.html KotlinConf https://youtu.be/V4PS3IjIzlw
  17. 17. ktor.guide Ktor —
  18. 18. Ktor (Shengyou) shengyou.fan@jetbrains.com Q&A — Kotlin for Web

×