An open API service indexing awesome lists of open source software.

https://github.com/jsmonk/kotlin-fastly-sdk


https://github.com/jsmonk/kotlin-fastly-sdk

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

[![Incubator](https://jb.gg/badges/incubator-plastic.svg)](https://github.com/JetBrains#jetbrains-on-github)

# Kotlin/Wasm WASI example

This example showcases a simple application using WASI API in Node.js and Deno.

![](screenshots/wasi-output.png)

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](https://www.jetbrains.com/idea/) 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](https://docs.deno.com/runtime/manual/getting_started/installation).

## Feedback and questions

Give it a try and share your feedback or questions in our [#webassembly](https://slack-chats.kotlinlang.org/c/webassembly)
Slack channel. [Get a Slack invite](https://surveys.jetbrains.com/s3/kotlin-slack-sign-up).
You can also share your comments with [@bashorov](https://twitter.com/bashorov) on X (Twitter).

## Learn more

* [Kotlin/Wasm](https://kotl.in/wasm/)
* [Other Kotlin/Wasm examples](https://github.com/Kotlin/kotlin-wasm-examples/tree/main)