/ktor-samples

Sample projects for Ktor

Primary LanguageKotlinApache License 2.0Apache-2.0

official JetBrains project

Samples for Ktor

A collection of ready-to-use samples for Ktor. If you're looking for older samples, please see our note on Docs and Samples Migration.

Content

Applications

  • chat - Chat Application written using WebSockets and Sessions.
  • fullstack-mpp - An example of using Ktor as a client and server in a Kotlin Multiplatform Project.
  • httpbin - HttpBin Ktor application implementing (large parts of) httpbin(1) HTTP Request & Response Service.
  • kweet - Messaging application written with Ktor using freemarker templates and locations feature.
  • reverse-proxy - A simple reverse proxy application written with Ktor.
  • reverse-proxy-ws - A reverse proxy application written using Ktor and WebSockets.
  • youkube - A video upload/view application written with Ktor.
  • version-diff - An application showing the difference between artifacts in two versions of a project.

Server

Client

Deployment

Maven

License

Samples are provided as is under the Apache 2 OSS license.