Giter VIP home page Giter VIP logo

denismaslennikov / foodgram-project-react Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 972 KB

Проект пищевого помощника призван облегчить повседневные хлопоты по приготовлению блюд.

Dockerfile 0.29% HTML 0.82% CSS 12.56% JavaScript 45.58% Shell 0.87% Python 39.84% Makefile 0.05%
django django-filters django-rest-framework docker docker-compose github-actions python

foodgram-project-react's Introduction

Foodgram

Проект пищевого помощника призван облегчить повседневные хлопоты по приготовлению блюд. С помощью продуктового помощника вы сможете делиться рецептами, находить новые рецепты составлять списки покупок по выбранным рецептам

Запуск проекта локально

1 Склонируйте репозиторий

git clone https://github.com/DenisMaslennikov/foodgram-project-react.git

2.1 Для запуска development версии используйте команду

docker compose up

2.2 Для запуска production версии используйте команду

docker compose -f docker-compose.production.yml up

Стек технологий:

Python, Django, Docker, django-filters, sorl-thumbnail

Примеры запросов к API

  1. Регистрация:
POST /api/users/
{
    "email": email,
    "username": username,
    "first_name": first_name,
    "last_name": last_name,
    "password": password
}
  1. Авторизация:
POST /api/auth/token/login/
{
    "email": emal,
    "password": password
}
ответ
{
    "auth_token": token
}
  1. Создание рецепта:
POST /api/recipes/
HEADERS {Authorization: you_token}
{
  "ingredients": [
    {
      "id": ingredient_id,
      "amount": int > 1
    }
  ],
  "tags": [
    tag_id,
    tag_id
  ],
  "image": base64_code_image",
  "name": name,
  "text": description,
  "cooking_time": int > 1
}

foodgram-project-react's People

Contributors

denismaslennikov avatar

Watchers

 avatar

foodgram-project-react's Issues

1

go!111111111

Фикс стилей отображения переноса текста рецепта.

Теперь при публикации рецепта авторские переносы в тексте отображаются при публикации и не сливаются в один монолитный текст. Добавлены стили в frontend/src/pages/single-card/description/styles.module.css и применены в frontend/src/pages/single-card/description/index.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.