This is a web server that can host quizzes.
- Clone this repository
git clone https://github.com/acmbpdc/mouseless.git
-
Install dependencies
First, make and activate a virtual env
python -m venv venv .\venv\Scripts\activate
Now that the virtual environment is activated, install the required libraries. Note: every time you start the project, you will have to activate the venv.
pip install -r requirements.txt
In the virtual env:
\venv\lib\site-packages\markdownx\urls.py
Replace:
from django.conf.urls import url
With:
from django.urls import re_path as url
-
Perform migrations
python manage.py makemigrations python manage.py migrate
-
Create a super user
python manage.py createsuperuser
-
Create a new file
.env
and add in the secrets neededCLIENT_ID = XXX.apps.googleusercontent.com CLIENT_SECRET=XXX-YYY-ZZZ SECRET_KEY = XXX
Start server
python manage.py runserver 0.0.0.0:8000
-
A single
User
can be associated with 1-2Player
s -
A timer for the entire
Quiz
-
A
User
is timed only if the complete aTask
.Their time metric is the duration since the start of the challenge till their last successful
Task
completion. -
A leaderboard showcasing the
User
s with the most points.Ties are settled based on the time taken to complete
Task
s