Giter Site home page Giter Site logo

ice444-222 / grocery_assistant_django Goto Github PK

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

Foodgram product assistant is created to allow users to publish their recipes, subscribe to other authors, add recipes to favorites, and create a shopping list based on the recipes in the cart.

Home Page: https://iceadmin.ru/

Dockerfile 0.20% HTML 0.93% CSS 14.20% JavaScript 51.54% Shell 0.78% Python 32.36%

grocery_assistant_django's Introduction

Foodgram Product Assistant Project

Working project on the domain:

iceadmin.ru

Currently, only russian language is supported. The Foodgram project is a web application implemented with React and Django. The Foodgram product assistant is created to allow users to publish their recipes, subscribe to other authors, add recipes to favorites, and create a shopping list based on the recipes in the cart. The site includes registration, token-based authorization, an administrator panel, API requests, and result filtering. It also has CI/CD through Git workflow and Docker. The Foodgram application is hosted on a remote server. The application is divided into containers: Frontend, Backend, Gateway, and Db. Upon pushing to the main branch, a workflow instruction is triggered by Git actions. Independent runners check the code using flake8, build images using docker-compose, and push them to dockerhub. Upon successful completion of actions, a message is sent to Telegram from a bot.

Technology Stack:

Python 3.9.10
Django 3.2.16
gunicorn 20.1.0
djoser 2.1.0
nginx 1.19.3
postgres 12.4

How to Run the Project:

Clone the repository and navigate to it in the command line:

git clone [email protected]:Ice444-222/grocery_assistant_django.git 
cd foodgram-project-react

Push to the main branch:

git push

Connect to the remote server and populate the database with initial data:

sudo docker compose -f docker-compose.yml exec backend python manage.py load_csv dbdata/ingredients.csv

Admin panel login details:

Username: ice
Password: ice

Create Tag model objects through the admin panel.

Examples of Requests to the Application

Request to the Home Page

A request to the home page will redirect to the authentication page if the user is not logged in. If the user is already authenticated, the page with all recipes will open.

https://iceadmin.ru/

Adding a New Recipe

To access this page, you need to be authenticated. You also need to upload an image of the recipe and select ingredients.

https://iceadmin.ru/recipes/create

Editing a Recipe

Only the author of the recipe or an admin can edit a recipe.

https://iceadmin.ru/recipes/id/edit

Workflow Status

process

grocery_assistant_django's People

Contributors

ice444-222 avatar

Watchers

 avatar

grocery_assistant_django's Issues

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

Теперь при публикации рецепта авторские переносы в тексте отображаются при публикации и не сливаются в один монолитный текст. Добавлены стили в 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.