Full description and requirements are located in Pizza assignment.pdf
.
one.batch.mp4
quickfire.batches.mp4
- Prerequisites:
- Docker
- Open a terminal at the same path as
docker-compose.yml
. - Enter
docker-compose up
and wait for it to finish. - The react client should now be available at
http://localhost:3000
, and the server athttp://localhost:8080
.
Use the client interface and / or send api requests to the server.
URI | Method | what? |
---|---|---|
/pizzas | POST | Submit orders. |
/pizzas/batches | GET | Get completed batches (persisted in the DB). |
/pizzas/active | GET | Get batches still in progress. |
Plain Pizza (No toppings) - should take 22 seconds to finish the pipeline:
-
[ { "toppings": [] } ]
Each one of these should take 26 seconds:
-
[ { "toppings": ["bacon"] } ]
-
[ { "toppings": ["bacon", "tomato"] } ]
-
[ { "toppings": ["bacon", "tomato", "cheese"] } ]
Each one of these should take 30 seconds:
-
[ { "toppings": ["bacon", "tomato", "cheese", "onion"] } ]
-
[ { "toppings": ["bacon", "tomato", "cheese", "onion", "mushrooms", "pepperoni"] } ]
Pizza Party - should take 62 seconds:
-
[ { "toppings": ["bacon", "tomato"] }, { "toppings": ["bacon", "tomato", "cheese", "onion"] }, { "toppings": ["bacon", "tomato", "cheese", "onion", "mushrooms"] }, { "toppings": ["bacon", "tomato", "cheese", "onion", "mushrooms", "pepperoni"] }, { "toppings": ["bacon", "tomato", "cheese", "onion", "mushrooms", "pepperoni", "sausage"] } ]