This is a Kotlin Multiplatform project targeting Web, Server.
-
/app/sharedLogic is for the code that will be shared between app targets in the project. The most important subfolder is commonMain. If preferred, you can add code to the platform-specific folders here too.
-
/app/webApp contains a React web application. It uses the Kotlin/JS library produced by the sharedLogic module.
-
/core is for the code that will be shared between all targets in the project. The most important subfolder is commonMain. If preferred, you can add code to the platform-specific folders here too.
-
/server is for the Ktor server application.
Use the run configurations provided by the run widget in your IDE's toolbar. You can also use these commands and options:
- Server:
./gradlew :server:run - Web app:
- Install Node.js (which includes
npm) - Build and run the web application:
npm run build:shared npm install npm run start
- Install Node.js (which includes
Use the run button in your IDE's editor gutter, or run tests using Gradle tasks:
- Server tests:
./gradlew :server:test - Web tests:
./gradlew :app:sharedLogic:jsTest
Learn more about Kotlin Multiplatform…