Skip to content

l2beat/token-db

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published