code a python app will be used to make reservations to the restaurant
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
調査の方向性
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 :
-
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.
- 主要言語
- 言語のデータがありません
- スター
- 29.8k
- フォーク
- 7k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
zhiwehu/Python-programming-exercises のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
zhiwehu/Python-programming-exercises#192 · コメント 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
zhiwehu/Python-programming-exercises#82 · コメント 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 48/100
zhiwehu/Python-programming-exercises#210 · コメント 1 件 · リアクション 1 件 ·
-
Pythonオープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
zhiwehu/Python-programming-exercises#204 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
zhiwehu/Python-programming-exercises の issue をすべて見る
似ている issue
-
ai-driven-qa bug Cosmetic
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
numberly/vault-db-injector#107 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
interledger/publisher-tools#931 ·
メンテナーはふだん 1 日以内に返信
-
area/import kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
refactor: replace numbered import aliases in platform/common, platform/fabricx, integration and ciオープンcleanup go hacktoberfest priority: low skill: good first issue status: ready for dev
難易度 2/5 半日 初心者へのやさしさ 72/100
hyperledger-labs/fabric-smart-client#2134 ·
メンテナーはふだん 1 日以内に返信