Sample project for Ktor running as an embedded application with Jetty engine.
Execute this command in the repository's root directory to run this sample:
./gradlew :jetty-embedded:run
And navigate to http://localhost:8080/ to see the sample home page.
Embedded Ktor application is started with the following line of code using Jetty
engine:
embeddedServer(Jetty, commandLineEnvironment(args)).start()
See Main.kt