Загрузка...

Build a Ktor 3 Server from Scratch in 2026 | Kotlin Backend #1| Giveaway | Kotlin | CMP | Jetbrains

Episode 1 of a hands-on series where we build the real backend for FiveLinks, a multiplayer board game, one Ktor topic at a time.

By the end of this video you'll have a Netty-backed Ktor server answering GET /health on a configurable port set up the way you'd actually ship it in 2026.

⏱️ What you'll learn
• Starting a server with embeddedServer(Netty)
• Defining routes with the routing { } DSL
• Reading the port from an environment variable (the $PORT cloud convention)
• Why host = "0.0.0.0" is the #1 "works on my machine" Docker bug — and how to avoid it

Stack
• Kotlin 2.3.21
• Ktor 3.5.0
• Gradle 9.x

Repo: https://github.com/furqanullah717/fivelinks-cmp

Chapters
00:00 Introduction
00:29 Giveaway
01:19 Project exploration
03:02 Application.kt
06:44 Adding configurable PORT
10:27 Exploring Routing
15:18 Setup Postman
19:34 Closing

➡️ Next episode: Typed JSON on the wire with kotlinx.serialization — the foundation of FiveLinks's multiplayer protocol.

👍 If this helped, subscribe and hit the bell — the whole series rebuilds a production Kotlin backend from zero.

#Ktor #Kotlin #BackendDevelopment

Видео Build a Ktor 3 Server from Scratch in 2026 | Kotlin Backend #1| Giveaway | Kotlin | CMP | Jetbrains канала Code with FK
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять