Simple devcontainer for AssemblyScript/TypeScript development
Just click the button:
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.
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 .There is an example of a WAGI web server in the webserver directory:
cd webserver
npm install
npm run build
npm run startThis 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.
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.