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.
- After sending the API to the server, we create Check models in the database.
- Then, the generation of check files is queued for execution.
- Next, the running Celery task searches for the generated checks and prints them (the task is executed every 10 seconds).
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
python -m venv venv
Linux, Unix: source venv/bin/activate
pip install -r requirements.txt
create .env based on .env.sample
docker-compose up -d
cd backend
python manage.py migrate
python manage.py createsuperuser (for use admin panel)
python manage.py loaddata printers.json
celery -A delivery_network worker --beat --loglevel=info & python manage.py runserver
If You have any questions: https://t.me/eugen_martynuk