Skip to content

zakharovvladimir/Recipes-social-network-for-cooks-and-homemakers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recipes social network

Description

Docker

DB

Commands

DB import

Information and Access

Creator


Description

The Recipes social network project:

  • Create and manage recipes
  • View recipes of users
  • Add recipes of users in Favorites and Cart
  • Subscribe to other users
  • Download the list of ingredients for the recipes

Docker

Containers: db, frontend, backend, nginx
Docker and Docker Compose need to be installed


DB

Database: PostgreSQL

.env:

DB_ENGINE=django.db.backends.postgresql
DB_NAME=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
DB_HOST=db
DB_PORT=5432

Commands

GIT Clone:

SSH: git clone git@github.com:zakharovvladimir/foodgram-project-react.git

requirements.txt install:

python3 -m pip install --upgrade pip
pip install -r requirements.txt

./infra/:

docker-compose up -d --build

DB migrations:

docker-compose exec backend python manage.py migrate

Superuser:

docker-compose exec backend python manage.py createsuperuser

Static:

docker-compose exec backend python manage.py collectstatic --no-input

DB import

Ingredients import:

docker-compose exec backend python manage.py import

Information and Access

Technology Stack: Python 3.9, Django, Django Rest Framework, PostgreSQL, React, Docker, nginx, gunicorn, Djoser

Creator

Vladimir Zakharov vladimir.zakharov.s@yandex.ru

License

MIT