Skip to content

🕹 A Django server to host the #NoMouseChallenge

License

Notifications You must be signed in to change notification settings

AakarM1/mouseless

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mouseless

This is a web server that can host quizzes.

Installation

  • Clone this repository
    git clone https://github.com/acmbpdc/mouseless.git

Configuration

  • Install dependencies

    Fix Conf URL Path

    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

    Adding environment variables for OAuth

  • Create a new file .env and add in the secrets needed

    CLIENT_ID = XXX.apps.googleusercontent.com
    CLIENT_SECRET=XXX-YYY-ZZZ
    SECRET_KEY = XXX

Usage

Start server

python manage.py runserver 0.0.0.0:8000

Features

  • A single User can be associated with 1-2 Players

  • A timer for the entire Quiz

  • A User is timed only if the complete a Task.

    Their time metric is the duration since the start of the challenge till their last successful Task completion.

  • A leaderboard showcasing the Users with the most points.

    Ties are settled based on the time taken to complete Tasks

About

🕹 A Django server to host the #NoMouseChallenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 58.5%
  • HTML 38.2%
  • CSS 3.2%
  • Procfile 0.1%