Using Kotlin for JS Client and JVM Server
summary
Kotlin compiles to JavaScript for production while Kotlin Multiplatform remains experimental; the workflow uses expect/actual declarations, multiplatform libraries like kotlinx.serialization, and Gradle to produce JVM server and JS client artifacts. A demo full‑stack app shares data classes, HTTP suspend APIs and validation logic between server and browser, reusing common modules compiled twice; iOS UI stays in Swift. Tooling works but needs explicit JS name exports, Gradle tasks for tests, and Xcode for iOS builds.
AI-written summary · about
chapters (11)
- 0:00Start
- 1:16What Is Different Backends
- 1:52Introduction
- 4:01Factorial Function
- 7:11Factorial Test
- 10:27Language Support
- 11:49Ide Support
- 13:53Common Code
- 15:43Build System
- 16:30Share Code with Javascript
- 25:17User Id
related talks
38mA Kotlink between worlds
48mKotlin for Android, iOS & the mobile web
01h 07mDevelop Multiplatform Projects in Kotlin
39mAn Overview of Multiplatform Kotlin
34mKotlin Multiplatform: code sharing without compromise
36mAll-Stacks Kotlin
48mEffective Multiplatform Kotlin Development
35mIntro to Kotlin Multiplatform
