-
Create a Virtual Environment:
- Use any of the following commands:
python -m venv env # or python3 -m venv env -
Activate the Virtual Environment:
- On Linux/MacOS:
source env/bin/activate- On Windows:
env\Scripts\activate
-
Install the Requirements:
pip install -r requirements.txt
-
Move to the
srcDirectory:cd src -
Add the
.envFile:- Paste the
.envfile attached in the email into thesrcdirectory.
- Paste the
-
Run Migrations:
- Apply the database migrations with the following command:
- It is not required, as I am using PostgreSQL from Neon. I have already applied the migrations.
python manage.py migrate
-
Start the Server:
python manage.py runserver
-
Run the Tests:
- To execute the test cases, use the following command:
python manage.py test