Skip to content
/ pizzeria Public

Full-Stack Engineer Candidate Assignment - NestJS, React

Notifications You must be signed in to change notification settings

el-f/pizzeria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"] }
    ]

About

Full-Stack Engineer Candidate Assignment - NestJS, React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published