nomad-xyz / nomad-monorepo

Contracts, off-chain agents, and libraries for Nomad
https://nomad.xyz
77 stars 16 forks source link

feature: Indexer #191

Open kekonen opened 2 years ago

kekonen commented 2 years ago
  1. cd tools/indexer
  2. To build and run docker u need to build SDK with changes and put it into the current directory by: npm run get_sdk
  3. docker build -t indexer .
  4. At this point u need to have some Postgres DB running
  5. Modify and move .env.example into .env
  6. Run core and wait till it will have all reindexed docker run --name core --rm --env-file .env --link pg1 -e PROGRAM=core -d indexer. It might throw errors due to RPC, just restart - it will proceed where it left off
  7. Run API docker run --name api --rm -p 3000:3000 --env-file .env --link pg1 -e PROGRAM=api -d indexer