case_tecnico_media_social

🤖 Run project

1° Create virtual ambient
Windows use this tutorial: Tutorial
Ubuntu use this tutorial: Tutorial

2° Run the project

  1. Activate the virtual environment, this information on how to activate the virtual environment can be accessed through this tutorial: Tutorial
  2. Install all dependencies using the command: pip install -r requirements.txt
  3. Use: python manage.py migrate. To appling all migrates
  4. Start the project using the command: python manage.py runserver

3° Run the short linux tutorial project

  1. Create a virtual enviroment: python -m venv ./venv
  2. Activate virtual enviroment: source venv/bin/activate
  3. Install all dependencies using the command: pip install -r requirements.txt
  4. Use: python manage.py migrate. To appling all migrates
  5. If you can create a superuser using: python manage.py createsuperuser
  6. Start the project using the command: python manage.py runserver

4° Run the short linux tutorial project using python3

  1. Create a virtual enviroment: python3 -m venv ./venv
  2. Activate virtual enviroment: source venv/bin/activate
  3. Install all dependencies using the command: pip install -r requirements.txt
  4. Use: python3 manage.py migrate. To appling all migrates
  5. If you can create a superuser using: python3 manage.py createsuperuser
  6. Start the project using the command: python3 manage.py runserver

5° Swagger docs Url: http://127.0.0.1:8000/swagger/

🤖 Run tests

1° Run the short linux tutorial project (tests)

  1. Create a virtual enviroment: python -m venv ./venv
  2. Activate virtual enviroment: source venv/bin/activate
  3. Install all dependencies using the command: pip install -r requirements.txt
  4. Use: python manage.py migrate. To appling all migrates
  5. Start tests using: python3 manage.py test social_media