Skip to content

Kotlin/kotlin-wasm-wasi-template

Repository files navigation

Incubator

Kotlin/Wasm WASI example

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.

Set up the environment

Before starting, ensure you have the necessary IDE setup to run the application.

IDE

We recommend using IntelliJ IDEA 2023.1 or later to work with the project. It supports Kotlin/Wasm out of the box.

Build and run

To build and run the application:

  1. In IntelliJ IDEA, open the repository.
  2. 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.

Feedback and questions

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).

Learn more

About

A template repository for Kotlin/Wasm with WASI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages