code a python app will be used to make reservations to the restaurant
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 :
-
There are customers who make reservation
-
There are tables for which reservation are made.
-
Waiters who will take orders.
-
Food Item that will be added to bill
-
Bill which has to be payed.
-
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 :
-
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.
-
Waiter login - this is simple login flow so nothing new here.
-
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.
- 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.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 29.7k
- Fork
- 7k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của zhiwehu/Python-programming-exercises
-
Print(" Hello world ")Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
zhiwehu/Python-programming-exercises#192 · 2 bình luận ·
-
Wrong solution on line 1953Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
zhiwehu/Python-programming-exercises#82 · 2 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 48/100
zhiwehu/Python-programming-exercises#210 · 1 bình luận · 1 reaction ·
-
PythonĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
zhiwehu/Python-programming-exercises#204 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Tất cả issue của zhiwehu/Python-programming-exercises
Issue tương tự
-
Bad device URI "://" on network printers. Printing stopped working between 2.4.19 and 2.4.20Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
OpenPrinting/cups#1751 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
melgarafael/DeskcommCRM#2657 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug][Python SDK] RecallMemory drops RFC-3339 created_at write-time timestamp returned by relayerĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
MystenLabs/MemWal#1160 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Idle compaction monitors LIST the replica every tick when the newest destination file spans more than one TXIDCó thể đã có người làm @pishuv đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
benbjohnson/litestream#1563 ·
Maintainer thường phản hồi trong vòng 2 ngày