git clone {repo}
yarn install
cp .env.dist .env
In .env setup real values
- Install polkadotjs browser extension https://polkadot.js.org/extension/ and add non citizen, citizen, and assemblyMember accounts from seeds
- for local development, run
npm run dev
and Open http://localhost:8080 to view it in the browser.
To autolint, run
npm run eslint --fix
npm run build
You can add the following to the polkadotjs browser extension to use them
Steve (citizen)
Mnemonic phrase: bargain album current caught tragic slab identify squirrel embark black drip imitate
Address: 5HGZfBpqUUqGY7uRCYA6aRwnRHJVhrikn8to31GcfNcifkym
Start api and auth servers.
nvm use 16
PORT=8020 npm run start
nvm use 16
npm run start
Needed for self onboarding process https://github.com/liberland/liberland-blockchain-middleware
https://github.com/liberland/chain_explorer/ Setup the dev instance as described in README with graphql engine running on port 3000
cargo run --release -- --dev
Run the following command from their respective directories
npm run dev
https://polkadot.js.org/apps/#/explorer?rpc=ws://localhost:9944