This example showcases a simple application using WASI API in Node.js and Deno.
Follow the instructions in the sections below to try out this Kotlin/Wasm application.
Before starting, ensure you have the necessary IDE setup to run the application.
We recommend using IntelliJ IDEA 2023.1 or later to work with the project. It supports Kotlin/Wasm out of the box.
To build and run the application:
- In IntelliJ IDEA, open the repository.
- Run the application by typing one of the following Gradle commands in the terminal:
-
Run the program with WasmEdge:
./gradlew wasmWasiWasmEdgeRun
-
Run tests with WasmEdge:
./gradlew wasmWasiWasmEdgeTest
-
Run the program with NodeJs:
./gradlew wasmWasiNodeRun
-
Run tests with NodeJs:
./gradlew wasmWasiNodeTest
-
Run the program with Deno:
./gradlew wasmWasiDenoRun
-
Run tests with Deno:
./gradlew wasmWasiDenoTest
Note: For Windows platform, ensure
deno.exe
is installed. For more information, see Deno's installation documentation.
Give it a try and share your feedback or questions in our #webassembly Slack channel. Get a Slack invite. You can also share your comments with @bashorov on X (Twitter).