ChengCY-2254 / ktor-samples

Sample projects for Ktor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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.

About

Sample projects for Ktor

License:Apache License 2.0


Languages

Language:Kotlin 81.9%Language:HTML 10.9%Language:FreeMarker 2.3%Language:Swift 2.3%Language:CSS 1.9%Language:JavaScript 0.7%