This is the leaderboard application for the Hacktoberfest summit. The application is kept simple so you can improve it with your own pull requests to help you contribute for Hacktoberfest.
The application is hosted on Heroku. Visit it here
Happy coding!
Configuration is exclusively done by setting environment variables:
PORT
: The port to bind HTTP to. Default to8080
GH_TOKEN
: The token to authenticated to github. By default, no token is used, so API calls are not authenticated.EVENT_DATE
: The date to restrict contribution search to. It must follows the github search date format (more details here). Default value is>=2005
which basically fetch everything without any restrictionPARTICIPANTS_FILE
: The URI or file path to the file containing the participants' github usernames. See this file for an example of how to format that file- [Deprecated]
OBJECTIVE
: Number of pull requests to make in order to complete the challenge. Default value is4
If the app is running behind a proxy, you'll need to set both environment variables
HTTP_PROXY
andHTTPS_PROXY
before running it
Build the application by running
go build .
Then run
./leaderboard
# or
./leaderboard.exe
then browse to http://localhost:8080