Development Workflow
To run the application with Gradle continuous build, enter one of these commands:
You can choose whether you want to develop Js or WasmJs version of your application without any code changes. In general it's recommended to develop with Js target, because the Kotlin/JS compiler is a lot faster and also HMR is fully supported.
After Gradle finishes downloading dependencies and building the application, open http://localhost:3000/ in your favorite browser.
You can import the project in IntelliJ IDEA and open src/commonMain/kotlin/main.kt
file. You can of course use your favourite text editor.
Make some code changes inside the start
function:
You should see your changes immediately in the browser.
It's recommended to use Gradle from a command line (in a terminal window).
Last updated