Fullstack sample project for Ktor running as an embedded application and serving a static folder with kotlin-js code sharing code with the backend.
The structure:
src/commonMain
- common code shared between the backend and the frontendsrc/backendMain
- ktor backend including fullstack-common codesrc/frontendMain
- kotlin-js code including fullstack-common code
Run this project with:
./gradlew run
And navigate to http://localhost:8080/ to see the sample home page.