Install Python. Make sure to tick the Add Python to enviroment variables
box. If you didn't do it on install, you can rerun the installer, hit Modify
, then tick the option.
Next, we will setup the Python Django virtual enviroment as instructed below.
- Clone repository
- Run
setup.bat
to create the Django virtual enviroment and install all dependencies - Run
start.bat
to start the server
- Clone repository
- Open Command Prompt
- CD to desired directory
cd C:/{your path}
- Install the virtualenv package
pip install virtualenv
- Create a virtualenv named IgBotEnv
py -m venv IgBotEnv
- CD to the Scripts folder
cd "IgBotEnv/Scripts"
- Activate the virtual enviroment to install required packages
call activate.bat
. When the enviroment is active, (IgBotEnv) will be displayed as seen below - Install dependencies
pip install django django-cors-headers psycopg2 selenium requests djangorestframework-simplejwt webdriver-manager
- CD to the Project's folder
cd "../../IgBotPrj"
- Create local migrations
python manage.py makemigrations
python manage.py migrate --fake
- Start the server
python manage.py runserver