Get the PR counts and avatar URLs for a list of authors defined in the AUTHORS environment variable and return as JSON.
Install Docker and Docker Compose
Run docker-compose up. Use docker-compose up --build if the image needs to be rebuilt.
Copy .env.sample to .env.
To increase GitHub's rate limit and allow up to 30 authors on the leaderboard, obtain a personal access token from GitHub. Without the token, only 10 authors can be added as the search API's rate limit will be reached.
Assign the personal access token to the GHTOKEN variable.
Add the authors to be included on the leaderboard to the AUTHORS variable, separated by the colon character :.
The TIMEZONE variable can be set to a location name from the IANA Time Zone database.
With the Docker container running, open a browser and go to https://localhost:4000/leaderboard.