This repository contains the code for the backend of the Hand Hygiene Contest Quiz. The backend is written in python and uses the django and djangorestframeworks for the REST API.
Since registration is not required for the quiz, the backend stores only the quiz results and user data for statistics.
The frontend is available on GitHub aswell https://github.com/zenodallavalle/hand-hygiene-contest-quiz-frontend.
The following steps are required to run the frontend locally (python3 required):
- Clone the repository
- Create a virtual environment:
python3 -m venv env
- Activate the virtual environment: (MacOS or Linux:
source env/bin/activate
) (Windows:env\Scripts\activate.bat
) - Install dependencies:
pip install -r requirements.txt
- Edit .env file in the root directory
- Edit the settings in
hand_hygiene_contest_backend/settings.py
if necessary - Apply migrations:
python manage.py migrate
- Run the server:
python manage.py runserver