Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
backend
frontend
README.md

README.md

Guessing game

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 npm.

$ cd frontend/
$ npm install
$ npm run start
...

> frontend-template@1.0.0 start /path/to/guessing-game
> webpack-dev-server

ℹ 「wds」: Project is running at http://localhost:8080/

Now open http://localhost:8080/, and have fun!

Hacking

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.

You can’t perform that action at this time.