Development Workflow

To run the application with Gradle continuous build, enter one of these commands:

./gradlew -t jsRun                                    (run Js target on Linux)
./gradlew -t wasmJsRun                                (run WasmJs target on Linux)
gradlew.bat -t jsRun                                  (run Js target on Windows)
gradlew.bat -t wasmJsRun                              (run WasmJs target on Windows)

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:

main.kt
override fun start() {
    root("root") {
        div {
            +"Hello Kilua!"
        }
    }
}

You should see your changes immediately in the browser.

Last updated