(Make sure you have Python 3.8 or above and latest version of pip installed on your system before starting this setup.)
For the developing team: Clone the branch titled with <your-name> into your required directory.
Everyone else may clone the main branch
py -m pip install --user virtualenv
This downloads the packages necessary for creating virtual environments on your system.
py -m venv djangoenv
This creates a virtual environment.
djangoenv\Scripts\activate.bat
This activates your virtual environment. Working on the virtual environment ensures the stability of dependencies used for the project.
python3 -m pip install --user virtualenv
python3 -m venv djangoenv
source djangoenv/bin/activate
You may now navigate to the directory containing your backend repository using the terminal. Now you can run the following command:
pip install -r requirements.txt
pip freeze > requirements.txt
This installs all the requirements in the requirements.txt file and freezes them to prevent updates. If you wish, you can install all the required packages step-by-step as well.
pip install django==4.1.7
pip3 install django==4.1.7
pip install djangorestframework==3.14.0
pip3 install djangorestframework==3.14.0
pip install django-cors-headers==3.13.0
pip3 install django-cors-headers=3.13.0
pip install djangorestframework-simplejwt==5.2.2
pip3 install djangorestframework-simplejwt==5.2.2
You are now good to go!