/harvester

Polkascan Harvester

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Polkascan Harvester

Running using Docker

Replace ENV settings in docker-compose.yml then run

docker-compose up --build

Running locally

Install package requirements:

pip install -r requirements.txt

Add current path to Python path

 export PYTHONPATH=$PYTHONPATH:$(pwd)

Create ./app/local_settings.py

DB_CONNECTION = "mysql+pymysql://root:root@localhost:3306/polkascan?charset=utf8mb4"
SUBSTRATE_RPC_URL = "ws://127.0.0.1:9944/"

INSTALLED_ETL_DATABASES = []

Apply database migrations

alembic upgrade head

Run harvester

python app/harvester.py --force-start