Gather is built using Substrate (Rust), for the UI we are using React and Material-UI.
git clone https://github.com/gnunicorn/gather
cd gather
To install the Substrate Development environment follow the official guide for a full install. On Linux and Mac this boils down to running:
curl https://getsubstrate.io -sSf | bash -s -- --fast
Then you can compile and run the local development client with:
cargo run -- --dev
You need Node.js and the yarn package manager.
The frontend lives in /app
. To run the dev server for the UI, just cd into that directory and run:
yarn start
This will open the browser showing the JS app locally, connecting to the local blockchain node via an unsecure websocket. It automatically reloads the UI on changes in /app/src
.
To start the UI connecting to a remote server, put the address in the enviornment variable $REACT_APP_WS_TARGET
when starting the server, e.g.:
REACT_APP_WS_TARGET="ws://otherhost.tld:9944" yarn start