PubQuiz tournament system, keeps and displays classification, gives one user possibility to keep track of points in every team.
- Download repo,
- Initialize virtual environment in it:
python -m venv env
, - Run that venv:
source env/bin/activate
, - Install dependencies:
pip install -r requirements.txt
, - Install frontend dependencies:
npm install
- Compile frontend assets:
npm run dev
, - (optional) Change database settings in settings.py if you want to use different (non-sqlite) db backend,
- Migrate database:
python manage.py migrate
, - To run dev server:
python manage.py runserver
Notice: Sometimes the app may not run and throw errors concerning None values on the main site. To fix that one must login into admin panel and visit GamePreferences so they can bootstrap. Error should be gone then.
If you installed new pip dependency you need to allow others to know about it. To do so it is best to save all requirements
in one file which in this case in named requirements.txt
. You can do this by typing following command:
pip freeze > requirements.txt