- Create Virtual Environment
python3 -m venv venv
- Activate the virtual environment
source ./venv/bin/activate
- Install Python3 dependencies:
pip3 install -r requirements_sgs_parallelization.txt
There are 2 steps required to get the website setup on your local environment (start the frontend and backend servers):
- In Project Root start Django (backend) server:
DEV_MODE=TRUE python3 manage.py runserver
. This will start django on port 8000. Take note of the DEV_MODE=TRUE env variable being set as part of the command. - Go into the frontend directory (ie:
cd frontend
) - Install any dependencies that may be missing:
npm install
- Run this command:
npm run start
. This will server up static files on port 3000 and proxy requests sent to /api/* to django at port 8000 - Project is available at http://localhost:3000 from the browser.