cppquiz
cppquiz copied to clipboard
Source for the http://cppquiz.org website (not the questions)
This is the source code (but not the content) for https://cppquiz.org
Both this code and the contents of the site are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License: http://creativecommons.org/licenses/by-sa/4.0/
Requirements
- Python 3.6 or 3.7
- CppQuiz is only tested on Ubuntu and MacOS, but will probably work on many other OSes as well
Contributing
Setting up the environment
- Clone this repository
- (We recommend using Virtualenv)
pip install -r requirements.frozen.txtcp cppquiz/local_settings_example.py cppquiz/local_settings.py, then edit at least/path/to/your/codepython manage.py migratepython manage.py createsuperuserpython manage.py create_questions 10(Or whatever number, just so you have some dummy questions)python manage.py runserver- Click the link displayed to go to the site. Visit
/adminto log in with the superuser you created above.
Testing
Unit tests
python manage.py test
System tests
The system tests are currently not maintained. If you want to have a go, you need at least pip install lettuce and pip install splinter. Then try to get ./run_lettuce to work.
Deployment
- Check out the branch you want to deploy
- Run ./deploy.sh