This repo is a student group project for the CS203 class (Yoobee Colleges, Auckland campus)
To create a web app project that generates quizzes to effectively matches gamers with games.
- Users can take the quiz
- System takes the user input and calculates the results for that user
- System uses the results to calculate game recommendations (WIP)
- Users decide which games are/are not a match
- Django
- jQuery
- Bootstrap
- Chart.js
First of all clone this repo to your device:
git clone https://github.com/maria-gedye/gameMatcher.git
Navigate inside the directory to gameMatcher/gmsite/ in the command line and use the following command to call the venv module:
python -m venv env
now activate the virtual environment:
# Windows
source env/Scripts/activate
# Linux, WSL or macOS
source env/bin/activate
After creating a virtual environment(previous step), restore the project using:
pip install -r requirements.txt
check what packages have been installed:
pip freeze
if you haven't already, navigate to the gmsite folder (cd gameMatcher/gmsite)
populate the database with data using the following commands:
python manage.py makemigrations
python manage.py migrate
then run the server by using:
python manage.py runserver
website should be displaying locally on http://localhost:8000/
When you want to end your session or run another project, make sure you deactivate your virtual environment using the command:
deactivate
Make sure you have followed steps 1-3 and that the server is running:
python manage.py runserver
admin website should be displaying locally on http://localhost:8000/admin/
You should see a login page. This is the default admin login details:
Username: admin
Password: bar
You must be logged in as a user for the POST request to be successful
If no admin exists, create an admin user from the command line run:
winpty python manage.py createsuperuser
and enter details to add yourself as a new admin user
python manage.py runserver
Run the server and type in new log in details http://localhost:8000/admin/