Block explorer for Substrate based chain
- Put your chain's types.json to
scanner
folder - Refer to
.env-example
to writescanner/.env
- Run
yarn
to install dependencies - Run
yarn sql
to setup prisma - Run
yarn dev
to start scanner
- Copy
scanner/.env
toui/.env
- Run
yarn
to install dependencies - Run
yarn gen
to setup prisma - Run
yarn dev
to start ui
scanner:
image: sigoden/subexpo-scanner:dev
container_name: scanner
restart: always
volumes:
- ./types.json:/app/types.json
environment:
- DATABASE_SYNC=true
- DATABASE_URL=mysql://root:pass@mysql:3306/subexpo
- ENDPOINT=ws://chain:9944
- ENDPOINT_RPC=http://chain:9933
ui:
image: sigoden/subexpo-ui:dev
container_name: ui
ports:
- 4000:4000
restart: always
environment:
- DATABASE_URL=mysql://root:pass@mysql:3306/subexpo
- ENDPOINT=ws://chain:9944