A full-stack 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 frontend
- src/backendMain - Ktor backend including fullstack-common code
- src/frontendMain - kotlin-js code including fullstack-common code
Run this project with:
./gradlew run
Then, navigate to http://localhost:8080/ to see the sample home page.