Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

code a python app will be used to make reservations to the restaurant

未关闭
#84 0 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
backend, database

调研方向

Start by reviewing the proposed restaurant-reservation use cases, entities, UI flows, and database fields in the issue. No implementation files, entry points, or tests are named, and the issue does not define a bounded first milestone or concrete completion criteria.

由索引模型根据 Issue 内容生成。

描述

For this application first we have to identify the data that needs to be saved and accessed, with that we will churn out entities that will take form of classes and use inheritance in case of relationship. After that based on the use cases we can design functions and events flow.

so here if we see the requirement defined for application :

  1. There are customers who make reservation

  2. There are tables for which reservation are made.

  3. Waiters who will take orders.

  4. Food Item that will be added to bill

  5. Bill which has to be payed.

  6. Order which contain list of food items ordered with quantity

So five entities i.e. classes needs to be created.

Now, since customer and waiter are person so we can create an abstract class with some common attribute like name, ssn, phone number, address e.t.c. and then we can inherit it to make customer and waiter class with their specific attribute like waiter id for waiter and no. of accompaniment for customer.

Similarly food item can be an interface which can be inherited in veg and non veg abstract classes which can further inherited in different food items available in restaurant.

Now, for holding reservation details we need to create a reservation table in db which contains details like :

1.reservation id

2.table num

3.customer id

4.waiter id

5.date and time

6.order

7.bill

Now, below are the possible use cases that I can sort out :

  1. Make Reservation - For this use case from ui user will fill the details like time and no. of people for dinner reservation, based on that we will search in db for the availability of table with that capacity on that time. For this db query we can use table and reservation. If available, then we will send success response with table id to ui and then user can continue after filling his details like name, ssn e.t.c. and make reservation with confirmation button. With this we can generate a reservation num and save the details in that table with a waiter alloted to that.

  2. Waiter login - this is simple login flow so nothing new here.

  3. Waiter access to add order - Here at his home page waiter can select table (in case assigned to multiple table) for which he has to add order. Here on the ui we has to provide a search functionality

a) to search food items - so an event is made on click of search button which will call find query in food item db and return result. This result can be used by waiter and then click on add button after selecting quantity, we have

b) create an event to generate order or update order with those food item.

  1. Bill generation - When dinner is done then waiter can click on checkout button and then need to create an event which will create bill based on the order of that table and save it in database with waiter tip details :)

I have not created any class and function as based on programming language it changes but design will remain the same.

Now for error handling-

There can be multiple error as table not available, food item out of stock, total calculation at the time of bill generation and many other with technical errors like db query, logical errors.

Also , ui related errors like phone number not correct, ssn not provided e.t.c.

主要语言
没有语言数据
星标
29.8k
派生
7k
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

zhiwehu/Python-programming-exercises 的其他 Issue

查看 zhiwehu/Python-programming-exercises 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。