Ensure you have a .env file in the same directory as settings.py with the following properties set
# Secret key for generating an authentication token
SECRET_KEY=
# Name of the postgres database
DBNAME=ntumods
# Username to access the postgres database
DBUSERNAME=postgres
# Password of the user
DBPASSWORD=password
Starting from root directory
- Install python packages
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
- Build the React app
cd frontend
npm install --legacy-peer-deps
npm run build
- Copy the build to django
cp -r build ../backend/
- Setup and run django
cd ../backend
python manage.py migrate
python manage.py runserver 0.0.0.0:8000
- Display Staff
- Display Exams
- Login & Timetable
- Get latlng of venues