Exploring WebAssembly by building Conway's Game of Life.
- Install
wasm-pack
if not installed already.
cargo install wasm-pack
- Use
wasm-pack
to compilewasm
and generate JS bindings
# ./$CARGO_ROOT
wasm-pack build
- Install npm dependencies (from
./www
directory)
# ./$CARGO_ROOT/www
npm i
- Start the dev server
# ./$CARGO_ROOT/www
npm run start