Code Monkey home page Code Monkey logo

delivery_network's Introduction

delivery_network

The "Food Top" delivery network has numerous points where orders are prepared for customers. Each customer wants to receive a receipt along with their order, which contains detailed information about the order. Kitchen staff also require receipts to ensure they don't forget anything during the preparation and packaging process. Our task is to assist both parties by developing a receipt generation service.

  1. After sending the API to the server, we create Check models in the database.
  2. Then, the generation of check files is queued for execution.
  3. Next, the running Celery task searches for the generated checks and prints them (the task is executed every 10 seconds).

Installation

Python3 must be already installed

The project runs local. Redis, PostgresSQL and wkhtmltopdf directly in Docker, all configurations will be automatically generated.

git clone https://github.com/evgenijmartynuk07/delivery_network.git
cd delivery_network

Create virtualenv

python -m venv venv

Linux, Unix: source venv/bin/activate

Install requirements

pip install -r requirements.txt

Create environment file

create .env based on .env.sample

Run Docker-Compose for create Database

docker-compose up -d

Create table in Database

cd backend
python manage.py migrate

Create User and load data to Database

python manage.py createsuperuser (for use admin panel)
python manage.py loaddata printers.json

Run Celery and Project togather

celery -A delivery_network worker --beat --loglevel=info & python manage.py runserver

If You have any questions: https://t.me/eugen_martynuk

delivery_network's People

Contributors

evgenijmartynuk07 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.