Skip to content

lochansurya/cppquiz

This branch is up to date with knatten/cppquiz:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a48c5ae · Feb 21, 2025
Feb 21, 2025
Feb 21, 2025
Feb 21, 2025
Feb 21, 2025
May 26, 2024
Dec 3, 2013
Feb 21, 2025
Sep 10, 2018
Sep 18, 2024
Feb 21, 2025
Nov 10, 2024
Mar 1, 2023
May 21, 2019
May 12, 2018
Apr 1, 2023
Apr 5, 2023
Feb 21, 2025
Jun 14, 2024
Mar 1, 2023
Feb 20, 2025
Feb 21, 2025
Feb 21, 2025

Repository files navigation

This is the source code (but not the content) for https://cppquiz.org

This project is licensed under the GNU General Public License Version 3, see COPYING. (The content on the site is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License, and is not available in this repository.)

Build Status

Requirements

  • Python 3.10 or higher
  • CppQuiz is only tested on Ubuntu and MacOS, but will probably work on many other OSes as well

Contributing

Please refer to CONTRIBUTING.md and CODE_OF_CONDUCT.md.

Running the code locally

Setting up the environment

  • Clone this repository
  • (We recommend using Virtualenv)
  • pip install -r requirements.txt
  • cp cppquiz/local_settings_example.py cppquiz/local_settings.py, then edit at least /path/to/your/code
  • python manage.py migrate
  • python manage.py createsuperuser
  • python 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 /admin to log in with the superuser you created above.

Testing

  • Run pytest, or if you prefer, python manage.py test

Formatting

All code is formatted with autopep8 and checked in CI. To format your code, run ./ci/format.sh --fix

Adding / upgrading dependencies

  • Add any new dependencies to requirements.in
  • Run pip-compile --upgrade requirements.in

Deployment

  • Check out the branch you want to deploy
  • Run ./deploy.sh

About

Source for the http://cppquiz.org website (not the questions)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 76.9%
  • HTML 15.5%
  • C++ 3.4%
  • CSS 2.6%
  • Shell 1.5%
  • CMake 0.1%