MONGODB_CONNECTION={mongodb connection string}
POLKADOT_RPC_URL={polkadot node}
KUSAMA_RPC_URL={kusama node}
SUBSCRIBER_URL={subscriber from fractapp-server url}
HOST=localhost
PORT=3000
-
Create .env config
-
Install yarn packages
yarn install
- Build
yarn build
- Start api
yarn api
- Start scanner for Polkadot
yarn scanner Polkadot {default height for first launch}
- Start scanner for Kusama
yarn scanner Kusama {default height for first launch}
- Start notifier for Polkadot
yarn notifier Polkadot {default height for first launch}
- Start notifier for Kusama
yarn notifier Kusama {default height for first launch}
- Start notifier for Kusama
yarn notifier Kusama {default height for first launch}
Config for docker is in .env-docker
docker-compose up
yarn test