Software Project for Course CZ3003 by Team HUF
Go to frontend directory:
cd frontend
You will need to install Node.js
, npm
and yarn
to manage JavaScript packages that we are going to use.
Download & Install Node.js & npm
https://nodejs.org/en/
Install Yarn
npm install -g yarn
Install node modules in package.json
Make sure you are in the frontend
directory before you do this.
yarn install
You can run the app in the development mode by using
yarn start
Open http://localhost:3000 to view it in the browser.
To build the app for production to the build folder.
yarn build
- Python 3.9.0
- MYSQL Workbench
-
Set up a new virtual environment
python -m venv env
-
Activate the virtual environment
\env\Scripts\activate.bat
-
Install required libraries
pip install -r requirements.txt
-
Create new SQL connection (Remote)
a. Connection Name:
remote project_huf
b. Hostname:
database-1.c4x9cbbouqsz.us-east-2.rds.amazonaws.com
c. Port:
3306
d. Username:
admin
e. Password:
projecthuf
f. Default Schema:
project_huf
-
Delete all the migrations file (If there is any)
a. Open up 'loginapi', 'gameapi', 'quizapi' folders
b. Open up 'migrations folder inside those 3 folders
c. Delete all the files except init.py
-
Migrate all the default Django tables to your MySQL schema.
python manage.py makemigrations
python manage.py migrate
-
python manage.py runserver
- Open http://localhost:8000
-
Login:
-
Game:
-
Quiz:
-
Quiz Question:
-
Quiz Option:
-
Quiz Result:
-
Forgot Password:
http://localhost:8000/forgot_password to test forget password, log out of cz3003 email 'cz3003huf@gmail.com' go to https://accounts.google.com/b/0/DisplayUnlockCaptcha log into cz3003 email 'cz3003huf@gmail.com', password: djangoreact enable https://myaccount.google.com/u/1/lesssecureapps test forgot_password