Files
nym/clients/webassembly/react-example
Dave Hrycyszyn 4099701852 Feature/wasm client fix (#399)
* Disabling wasm optimization for the moment, it isn't working on my machine

* Updating the React example back to a working state, 0.8.1 npm package is published.

* Merging develop into bugfix

* Upgrading react-scripts to fix a major vulnerability
2020-10-30 13:35:44 +00:00
..
2020-07-15 16:11:52 +01:00
2020-09-16 15:18:04 +01:00
2020-07-15 16:11:52 +01:00
2020-07-15 16:11:52 +01:00
2020-10-30 13:35:44 +00:00
2020-07-15 16:11:52 +01:00

This project was bootstrapped with Create React App.

Nym Sphinx Wasm Demo

This example application demonstrates how to use WebAssembly to create Sphinx packets, in the browser, and forward them to a Nym gateway.

🚴 Usage

npm install         # set up dependencies
npm run start       # starts a web server at http://localhost:3000

Check your dev console for output.

Rebuild after Rust source changes

Install wasm-pack. Instruction are at the Rust WASM tutorial.

wasm-pack build in the clients/webassembly directory (one up) will rebuild the wasm package if you make changes to the Rust source. That will be automatically picked up (and reloaded, if need be) by the npm dev server.