To run app.py:
Create a virtual environment:
python -m venv env
Activate the virtual environment:
Windows users (powershell):
.\env\Scripts\activate
If it gives an error due to scripts being disabled, open Powershell as admin and run this command first:
Set-ExecutionPolicy RemoteSigned
If using Linux/Mac:
source env\bin\activate
Make sure you have java installed:
If using Linux:
sudo apt-get install default-jre which java
If using Mac/brew:
brew install java
If using Windows: Download and install Java from Oracle's website
Install python libraries inside the created virtual environment
pip install -r requirements.txt
If you are on vscode, remember to set the python interpreter to the created environment's python version.
After python env is ready, database must be created in the root folder (
/backend):python utilities/create.py
Run the server (in its own terminal):
python app.py
Navigate to the frontend directory (in its own terminal):
cd viewInstall dependencies:
npm install
Run the development server:
npm run dev
Without credentials file: Open your database application and check the
VerificationCodetable to find the code associated with the newly created account.With credentials file: You should receive an email containing the verification code.
Fetch the PR and create a local branch on your device. For example, PR #15:
git fetch origin pull/15/head:pr-15
Switch to the PR branch.
git checkout pr-15
To refresh a PR branch with the latest changes:
git pull origin pull/15/head