Instagram-Automation-Tool / backend

0 stars 1 forks source link

Requirements

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.

image

Next, we will setup the Python Django virtual enviroment as instructed below.

Windows installation

.bat files

  1. Clone repository
  2. Run setup.bat to create the Django virtual enviroment and install all dependencies
  3. Run start.bat to start the server

Manual setup and execution trough Command Prompt

  1. Clone repository
  2. Open Command Prompt
  3. CD to desired directory cd C:/{your path}
  4. Install the virtualenv package pip install virtualenv
  5. Create a virtualenv named IgBotEnv py -m venv IgBotEnv
  6. CD to the Scripts folder cd "IgBotEnv/Scripts"
  7. Activate the virtual enviroment to install required packages call activate.bat . When the enviroment is active, (IgBotEnv) will be displayed as seen below image
  8. Install dependencies pip install django django-cors-headers psycopg2 selenium requests djangorestframework-simplejwt webdriver-manager
  9. CD to the Project's folder cd "../../IgBotPrj"
  10. Create local migrations python manage.py makemigrations python manage.py migrate --fake
  11. Start the server python manage.py runserver