Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/cristovaoolegario/restaurant-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/cristovaoolegario/restaurant-api

  • v0.0.0-20240409235725-588f92b280fa
  • Source
  • Go
  • Socket score

Version published
Created
Source

Your task for today is to implement an application to run our new restaurant. Your application should provide the following functionality:

  1. Take an order from table with customers
    • Table can have 1 customer or more.
    • Customer can choose one or more dishes from the menu.
    • Each dish can have different price and preparation-time.
    • Table order includes orders from all customers.
  2. Send the order to the kitchen by a waiter
  3. In the kitchen a chef is working on the order
    • The chef can work only on one order at a time.
  4. Once the order is ready, the order should be delivered to the table
    • Order preparation time calculated by the preparation-time of dish with the longest preparation-time included in the order.
    • When the order is ready one of the waiters should be notified and serve the dishes to the table.
  5. After the waiter serve the dishes, he’s also giving the bill to the table
  6. Add an option to add more chefs to the restaurant (although currently they have a budget only for one).

More Chefs can work on DIFFERENT orders in the same time and reduce waiting time to the customers.

Provide a design of your solution and the architecture of the program.

Show which entities participate in your solution and describe the flow of the solution.

sequenceDiagram
    participant C as Customer
    participant W as Waiter
    participant K as Kitchen
    participant Chef as Chef

    C->>W: Request to place an order
    W->>K: Send order details
    K->>Chef: Assign order to available Chef
    loop Preparation
        Chef->>Chef: Prepare dishes
    end
    Chef->>K: Notify order is ready
    K->>W: Notify waiter order is ready
    W->>C: Serve dishes to Table
    W->>C: Deliver bill to Customer

FAQs

Package last updated on 09 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc