Skip to content

diffusioncon/Gather-Substrate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gather logo

Development

Gather is built using Substrate (Rust), for the UI we are using React and Material-UI.

Clone the repo

git clone https://github.com/gnunicorn/gather
cd gather

Backend / Blockchain / Substrate

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

Frontend / React

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

Packages

No packages published

Languages

  • Rust 45.5%
  • JavaScript 44.5%
  • HTML 9.9%
  • Shell 0.1%