Official leaderboard for Get Set FOSS.
-
Clone the repository:
$ git clone https://github.com/axios-iiitl/Get-Set-Foss-Leaderboard.git -
Change the directory, create a virtual environment, activate it and install all dependencies:
$ cd Get-Set-Foss-Leaderboard/ $ virtualenv venv --python=python3.7 $ source venv/bin/activate $ pip install -r requirements.txt
-
Change the directory and run the
makemigrationsandmigratecommand:$ cd source/ $ python manage.py makemigrations $ python manage.py migrate -
Create a super user:
$ python manage.py createsuperuser
-
Collect all static files:
$ python manage.py collectstatic -
Run the server:
$ python manage.py runserver
-
Add your GitHub Personal Access Token in
settings.py. Edit theGITHUB_PERSONAL_ACCESS_TOKENsetting and insert your token there. You can read more about creating your own personal access token here: https://git.io/JeuQ3. -
Add participating repositories from the admin panel.
-
Every participant must sign in with GitHub.
-
Only merged PRs will result into points.
-
Each merged PR must have two labels so that it gets counted:
-
getsetfoss2019: Every PR must have this label so that it gets recognized as a valid PR for the event. If the PR doesn't have this label, it will get ignored and no points will be rewarded.- To change this to some other label, edit the
MAIN_LABELsetting insettings.py.
- To change this to some other label, edit the
-
Every PR must have a label which corresponds to its points. Valid labels are:
extra(5 points),very easy(10 points),easy(15 points),medium(25 points),hard(30 points),pro(50 points) andcodeburst(100 points).-
To add/remove any label, edit the
POINTS_DATAsetting insettings.py. -
Always run these two commands after editing
POINTS_DATA:$ python manage.py makemigrations $ python manage.py migrate
-
-
-
To sync the latest data, run
sync_datacommand:$ python manage.py sync_data