Compiling backend to WebAssembly
Please refer to Fluence Book for instructions on how to setup Rust and WebAssembly, and build Fluence apps.
If you have everything installed, it's very simple:
$ cd backend/ $ cargo build --release --target wasm32-unknown-unknown
And then publish! Fluence Book also has detailed instructions on publishing your apps.
Running the frontend
You will need installed
$ cd frontend/ $ npm install $ npm run start ... > firstname.lastname@example.org start /path/to/guessing-game > webpack-dev-server ℹ ｢wds｣: Project is running at http://localhost:8080/
Now open http://localhost:8080/, and have fun!
Currently it's possible to hack the random number generator, and predict what number will be next. Try to fix it :) You can get Rust source code here.