This project is an application skeleton for a full-stack spring boot app written entirely with Kotlin.
Spring Boot app with Kotlin and Kotlin.js
- spring-boot app to run server
- Kotlin js to write UI components
- Kotlin Dependencies
- gradle to build/compile/transcompile kotlin
$ ./gradlew bootRun
$ ./gradlew jsBrowserDevelopmentRun -t
$ gradlew.bat build
$ ./gradlew build
once the build is finished then the final "fat-jar" will be inside a zip file including a script to run it: build/distributions/springboot-kotlin-js-boot-2.5.4.zip
This project consists of:
- jvmMain
- this is where server-side springboot implementation exists
- jvmTest
- springboot tests goes here
- commonMain
- consists of shared implementations between back-end and front-end
- do not include any secrets in this module as it is share with front-end
- commonTest
- common tests
- jsMain
- this is the front-end module that renders the single page application
- jsTest
- front-end browser tests goes here
https://kotlinlang.org https://kotlinlang.org/docs/reference/js-overview.html