Skip to content

Repository files navigation

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.

Running the apps

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:
    1. Install Node.js (which includes npm)
    2. Build and run the web application:
      npm run build:shared
      npm install
      npm run start

Running tests

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

About

Kotlin Multiplatform project demonstrating code sharing between backend in kotlin and frontend in react. Shows a simple Project/Task manager

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages