Coder Social home page Coder Social logo

foodgram-project-react's Introduction

foodgram-project-react Workflow Status

Foodgram - Grocery Assistant

After launching the project, it will be available at your address. See below for instructions on how to run and view it in action.

Description of the Foodgram Project

"Foodgram" is an application where users can publish recipes of culinary delights, subscribe to publications from other authors, and add recipes to their favorites. The "Shopping List" service allows users to create a list of products needed to prepare selected dishes according to the recipe(s).

Project Setup and Launch

Clone the repository to your local machine:

git clone https://github.com/1karp/foodgram-project-react
  • Create a .env file and enter the following information:

    DB_ENGINE=<django.db.backends.postgresql>
    DB_NAME=<name of the PostgreSQL database>
    DB_USER=<database user>
    DB_PASSWORD=<password>
    DB_HOST=<db>
    DB_PORT=<5432>
    SECRET_KEY=<django project secret key>
    
  • On the server, build the docker-compose:

sudo docker-compose up -d --build
  • After successful build on the server, execute the following commands (only after the first deployment):
    • Collect static files:
    sudo docker-compose exec backend python manage.py collectstatic --noinput
    
    • Apply migrations:
    sudo docker-compose exec backend python manage.py migrate --noinput
    
    • Create a Django superuser:
    sudo docker-compose exec backend python manage.py createsuperuser
    
    • The project will be available at your IP address.

foodgram-project-react's People

Contributors

1karp avatar

Watchers

 avatar

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.