This is based on this nice tutorial on how to use Rust and WebAssembly together.
wasm-pack build
wasm-pack test --headless --firefox
npm run start
Point your browser to http://localhost:8080
heroku container:login
heroku container:push web
heroku container:release web
heroku open
Optional, after login
:
- verify Docker with:
docker ps
- create new Heroku project if needed:
heroku create