rust(https://www.rust-lang.org/tools/install)wasm-pack(https://rustwasm.github.io/wasm-pack/installer/)nodejsandnpm(https://nodejs.org/en/download/package-manager)
Build wasm package (this will create pkg folder):
wasm-pack buildInstall npm dependencies for local development server:
cd www
npm installOpen a new terminal to run de development server. Running the server in a new terminal lets us leave it running in the background, and doesn't block us from running other commands in the meantime. In the new terminal, run this command from the www folder:
npm run startNavigate your Web browser to http://localhost:8080/
Build wasm package for nodejs (this will create node/pkg folder):
wasm-pack build --target nodejs --out-dir node/pkgInstall npm dependencies:
cd node
npm installRun wasm-hasher from node folder:
node run-hasher.js