• Stars
    star
    1,415
  • Rank 33,251 (Top 0.7 %)
  • Language
    Kotlin
  • License
    Apache License 2.0
  • Created almost 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sample projects for Ktor

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.

Applications

  • chat - A 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 application implementing (large parts of) httpbin(1) HTTP request & response service.
  • kweet - A messaging application that uses FreeMarker templates and the Locations plugin.
  • reverse-proxy - A simple reverse proxy application.
  • reverse-proxy-ws - A reverse proxy application written using WebSockets.
  • youkube - A video upload/view application.
  • version-diff - An application showing the difference between artifacts in two versions of a project.
  • postgres - An application for creating, editing and deleting articles that uses Postgres database running on Docker image as a storage.
  • mongodb - An application for creating, editing and deleting articles that uses Mongodb running on Docker image as a storage.
  • mvc-web - An application for adding and removing wishes to wishlist that uses FreeMarker templates and Exposed.
  • opentelemetry - An application that uses Kotlin DSL to work with OpenTelemetry Ktor plugins.

Server

Client

Deployment

Testing

  • jwt-auth-tests - Shows how to write tests for RSA-signed JWT secured endpoints.

License

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