Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 747 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 747 Bytes

Restaurant Booking System

A restaurant owner has asked you to implement a booking system for their restaurant. Please implement the following requirements one by one.

Guidance

  • Keep it simple
    • Do not create API endpoints
    • Do not use a real database (hard-coded JavaScipt objects/arrays are fine)
    • Use simple functions and/or classes
  • Write tests as you go

Requirements

  1. A Customer should be able to book a seat.

  2. The Restaurant has a limited capacity and only has space for 30 seats.

  3. The Owner can see the amount of free seats available.

  4. The Owner can see the seat number of the next available seat.

  5. The Customer should be able to book a table rather than individual seats. Each table has two seats.