Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

fractapp/scanner

Repository files navigation

Getting Started

Configure

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

Manual

  1. Create .env config

  2. Install yarn packages

yarn install
  1. Build
yarn build
  1. Start api
yarn api
  1. Start scanner for Polkadot
yarn scanner Polkadot {default height for first launch}
  1. Start scanner for Kusama
yarn scanner Kusama {default height for first launch}
  1. Start notifier for Polkadot
yarn notifier Polkadot {default height for first launch}
  1. Start notifier for Kusama
yarn notifier Kusama {default height for first launch}
  1. Start notifier for Kusama
yarn notifier Kusama {default height for first launch}

Docker

Config for docker is in .env-docker

docker-compose up

Tests

yarn test