/ktor-native

Demo for running a ktor web application without the JVM

Primary LanguageKotlin

embeddedServer - Native

A sample project demonstrating how to run a Ktor server in a Kotlin/Native application. Open build.gradle.kts to see the Gradle configuration.

This sample is a part of the codeSnippets Gradle project.

Running

To run a sample, execute the following command in a repository's root directory:

./gradlew :embedded-server-native:runReleaseExecutableNative

To test this sample, execute the nativeTest task:

./gradlew :embedded-server-native:nativeTest