maria-gedye / gameMatcher

This repo is a student group project for the CS203 class (Yoobee Colleges, Auckland campus)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gameMatcher

This repo is a student group project for the CS203 class (Yoobee Colleges, Auckland campus)

Objectives

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

Frameworks/Libraries

  • Django
  • jQuery
  • Bootstrap
  • Chart.js

1. Install gameMatcher

First of all clone this repo to your device:

git clone https://github.com/maria-gedye/gameMatcher.git

2. Create a virtual environment

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

3. Install packages

After creating a virtual environment(previous step), restore the project using:

pip install -r requirements.txt

check what packages have been installed:

pip freeze

4. Start the project

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

Access the admin site

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

Current Issues

Can't see quiz results?

You must be logged in as a user for the POST request to be successful

No users exist?

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/

About

This repo is a student group project for the CS203 class (Yoobee Colleges, Auckland campus)


Languages

Language:HTML 49.4%Language:Python 35.2%Language:CSS 9.0%Language:JavaScript 6.3%