Initial Ktor backend skeleton with ProtocolMessage DTO, REST and WebSocket

This commit is contained in:
2026-04-01 18:23:41 +03:00
parent dcf3d30295
commit b0a48e94bd
29 changed files with 638 additions and 0 deletions

29
backend/build.gradle.kts Normal file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env kotlin
plugins {
kotlin("jvm") version "1.9.22"
kotlin("plugin.serialization") version "1.9.22"
application
}
repositories {
mavenCentral()
}
dependencies {
implementation("io.ktor:ktor-server-core:2.3.7")
implementation("io.ktor:ktor-server-netty:2.3.7")
implementation("io.ktor:ktor-server-content-negotiation:2.3.7")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.7")
implementation("io.ktor:ktor-server-websockets:2.3.7")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
implementation("ch.qos.logback:logback-classic:1.4.14")
testImplementation(kotlin("test"))
}
application {
mainClass.set("org.pavloveugene.iot.backend.ApplicationKt")
}