Starting a new project

First you'll need a new(ish) version of the rust toolchain. For that you can visit and follow the installation instructions.

Then you'll need wasm-pack.

The easiest way to get hacking is to use the wonderful cargo-generate, which can be installed using cargo install cargo-generate.

Then run

cargo generate --git

and give the command line a project name. Then cd into your sparkling new project and

wasm-pack build --target web

Then, if you don't already have it, cargo install basic-http-server or use your favorite alternative to serve your app:

basic-http-server -a