Skip to content

Latest commit

 

History

History
63 lines (51 loc) · 2.28 KB

README.md

File metadata and controls

63 lines (51 loc) · 2.28 KB

Pizza Assignment CodeFactor

Full description and requirements are located in Pizza assignment.pdf.

Demos:

one.batch.mp4
quickfire.batches.mp4

Installation:

  • Prerequisites:
    • Docker
  1. Open a terminal at the same path as docker-compose.yml.
  2. Enter docker-compose up and wait for it to finish.
  3. The react client should now be available at http://localhost:3000, and the server at http://localhost:8080.

Usage:

Use the client interface and / or send api requests to the server.

Available endpoints:

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.

Sample data for testing:

Plain Pizza (No toppings) - should take 22 seconds to finish the pipeline:

  • [ { "toppings": [] } ]

Each one of these should take 26 seconds:

  1. [ { "toppings": ["bacon"] } ]
  2. [ { "toppings": ["bacon", "tomato"] } ]
  3. [ { "toppings": ["bacon", "tomato", "cheese"] } ]

Each one of these should take 30 seconds:

  1. [ { "toppings": ["bacon", "tomato", "cheese", "onion"] } ]
  2. [ { "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"] }
    ]