- Language: Python
- Framework: Django
- Database: PostgreSQL
- ORM: Django ORM
- Services: Docker, Celery, Redis
-
Added Unit Testing
-
MySQL was causing problems with my path variables, which is why I switched to PostgreSQL.
-
Change the directory to
cd pizza_delivery
. -
Build and run the system with Docker Compose:
docker-compose up --build
-
Open Postman and test the endpoints, Please follow the steps given below ( Need to add atleast 5 Toppings )
- Endpoint:
localhost:8000/pizza-ordering/api/create_pizzas/
- Additional Info: You need to provide the ID assigned to the topping name.
-
Endpoint:
localhost:8000/pizza-ordering/api/create_orders/
-
Additional Info: Celery task will automatically be assigned; no need to run Redis server and Celery from your side. These services are also included in Docker.
-
The image shows that the Celery task is working on the conditions.
- Endpoints:
http://localhost:8000/pizza-ordering/api/pizza_base/id
http://localhost:8000/pizza-ordering/api/cheese/id
http://localhost:8000/pizza-ordering/api/topping/id
http://localhost:8000/pizza-ordering/api/pizza/id
http://localhost:8000/pizza-ordering/api/topping/id