Prerequisites : Python3, pip
-
Create a virtual environment with venv (install virtualenv, if its not installed).
sudo apt-get install python3-venv python3 -m venv venv
pip install virtualenv python -m venv venv
-
Activate the virtual environemnt.
source venv/bin/activate
venv\Scripts\activate
-
Install the requirements.
pip install -r requirements.txt
-
Run the Migrations
python manage.py makemigrations python manage.py migrate
-
Run the server with development settings
python3 manage.py runserver --settings=SecureDePaRT.dev-settings
-
The Backend gets hosted by default at port 8000.