Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Latest commit

 

History

History
50 lines (34 loc) · 1.01 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.01 KB

Token-DB

Run as queue

  1. Setup Redis service (see below)

  2. Setup Database

  3. Put redis and database connection details in .env (see .env.example)

  4. Push schema to database:

yarn db:push
  1. Provide details for the chains (rpc/explorers) By default, RPCs shipped with the view will be used. To override, provide the details in .env (see .env.example) By default, explorers are not used. To use, provide the details in .env (see .env.example)

  2. Seed database:

yarn db:seed
  1. Enable queue dashboard by setting QUEUE_DASHBOARD_PORT=<port> in .env to a port number you want to use for the dashboard - by default it is disabled:
QUEUE_DASHBOARD_PORT=3000
  1. Start the queue:
yarn queue

Check out current queue schema here: Queue schema

Redis

Run redis server:

docker-compose up

Flush redis while service is running:

docker-compose exec redis redis-cli flushall