Open source block explorer for snapr hosted at https://explorer.snapr.com
You will need nodejs
and yarn
, docker
and docker-compose
.
Install mono-repo:
git clone https://github.com/snapr-org/explorer.git
cd explorer
yarn
First, copy the proper frontend configuration file (mainnet or testnet):
cp frontend/frontend.config.mainnet.sample.js frontend/frontend.config.js
cp frontend/frontend.config.tesnet.sample.js frontend/frontend.config.js
yarn workspace frontend dev
yarn workspace frontend generate
To build and start all the required dockers.
yarn workspace backend docker:mainnet
yarn workspace backend docker:testnet
Clean all docker containers and related images and persistent volumes except those related to substrate-node
.
yarn workspace backend docker:clean
Create PostgreSQL database backup:
docker:postgres:backup
bash docker/backend/scripts/backup.sh
bash docker/backend/scripts/restore-backup.sh