Skip to content
/ dev-wasm-ts Public template

Simple devcontainer for Assembly/Typescript + WASM development

License

Notifications You must be signed in to change notification settings

dev-wasm/dev-wasm-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Devcontainer WASM-TS

Simple devcontainer for AssemblyScript/TypeScript development

Usage

Github Codespaces

Just click the button:

Open in GitHub Codespaces

Visual Studio Code

Note this assumes that you have the VS code support for remote containers and docker installed on your machine.

git clone https://github.com/dev-wasm/dev-wasm-ts
cd dev-wasm-ts
code ./

Visual studio should prompt you to see if you want to relaunch the workspace in a container, you do.

Building and Running

Simple Example

There is a simple example in the simple directory. To build and run:

cd simple
npm install
npm run build
wasmtime build/main.wasm --dir .

Web serving with WAGI

There is an example of a WAGI web server in the webserver directory:

cd webserver
npm install
npm run build
npm run start

This will start a simple web server powered by lighttpd running on port localhost:8080. If you are running in Github codespaces, it should prompt you to open a browser that will forward to your codespace.

HTTP client example

There is a more complicated example in the http directory which shows an example of making an HTTP client call using the experimental wasi+http support in wasmtime-http.

About

Simple devcontainer for Assembly/Typescript + WASM development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published