Kotlin Compose Multiplatform with Ktor Backend

This is simple application using Compose Multiplatform for frontend and Ktor as backend.

The main goal of the project was to obtain a simple web application served by Ktor and built with a single command.


  • shared contains code shared among frontend and backend;
  • web contains simple web application wrote in Compose Multiplatform;
  • backend contains Ktor server with REST API.

Running application

To run sample execute:

./gradlew run

then go with your browser to

Build distribution package

To create distribution package, execute:

./gradlew distZip

It builds frontend, backend and packs everything together. File will be stored in ./backend/build/distributions/backend.zip


View Github