Collect match data from Relic Link API into a database
- Fetching and parsing of obersable matches done.
- Fetching match results when match ended done.
- Fetching match after an collector outage not yet done. Could be done by checking which users played matches during outage via leaderboards.
- Fetching and parsing of lobbies done.
- Cleanup of lobbies that do not exist anymore not yet done.
- Fetching and parsing of leaderboards done but not enabled by default.
Install node.js.
Install yarn with npm install --global yarn
.
Install docker for local postgres db for development.
Install dependencies
yarn
Copy sample env variable file
mv .env.sample .env
Start local postgres db
docker compose up -d
Migrate db
npx prisma migrate dev
Start collector
yarn collector
Start graph
yarn graph