diff --git a/.main.js.swp b/.main.js.swp deleted file mode 100644 index 0be77d7..0000000 Binary files a/.main.js.swp and /dev/null differ diff --git a/.vscode/launch.json b/.vscode/launch.json index 1d4b431..60024dd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "version": "0.2.0", "configurations": [ { - "type": "pwa-node", + "type": "node", "request": "launch", "name": "Launch Program", "skipFiles": [ @@ -13,7 +13,7 @@ ], "program": "${workspaceFolder}\\main.js", "env": { - "port": "666", + "port": "3000", "table_count": "12", "code": null //"666" } diff --git a/README.md b/README.md index b399a60..c7d59df 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,75 @@ -As of 2022-07-06, I have no intention to bring this project back to the limelight. I designed Bring Back Buffets to address buffet closures dring Covid closures in early 2021. This was before vaccines were available. Though the codebase was complete enough to work in a pro*dev*ction environment, I was not successful in advertising to buffet owners. +As of 2022-07-06, I have no intention to bring this project back to the limelight. I designed Bring Back Buffets to address buffet closures dring Covid closures in early 2021. This was before vaccines were available. Though the codebase was complete enough to work somewhere between a development and a production environment, I was not successful in advertising to buffet owners. --- -## Let's *Bring Buffets Back to Business* with an in-house mobile ordering solution! -1. Customer(s) request a table and pay up-front. -2. Cashier hands receipt to customers(s) with an order code and table number. -3. Customer(s) place their buffet orders on their mobile devices. -4. A server will make the requested order and bring it to the table. +## Let's _Bring Buffets Back to Business_ with an in-house mobile ordering solution! + +1. Customer(s) request a table and pay up-front. +2. Cashier hands receipt to customers(s) with an order code and table number. +3. Customer(s) place their buffet orders on their mobile devices. +4. A server will make the requested order and bring it to the table. + +## Example of Use + +### `./tble.csv` + +The program automatically determines how many tables to have the system manage. The `tble` column shows what to name each table for the cashier's view. The `code` field contains the unique access code for each table and should be entered by the customer. The `time` field shows a Unix timestamp for when that table was released. + +```csv +tble,code,time +1,4900,1614589670430 +2,, +3,, +4,, +5,, +6,, +7,, +8,, +9,, +10,, +11,, +12,, +``` + +### `./menu.csv` + +The `name` column is the name of each food item as viewed by the customer. The `shortname` field is shown in the expedite page and shouldn't be more than 8 characters long. The `limit` field, if not left blank, dictates an upper limit to the number of servings customers can request per visit to the customer page. + +```csv +name,shortname,limit,unit,image +Orange Chicken,ORNGCHKN,,sp.,https://farm5.staticflickr.com/4015/4655017334_45f4fffb54_z.jpg +Broccoli Beef,BROCBEEF,,sp.,https://www.itsmydish.com/wp-content/uploads/2015/12/broccoli-beef-final2.jpg +Fried Squid,FRDSQUID,,sp.,https://farm3.staticflickr.com/2669/4189339625_93029fa024_z.jpg +Cheese Wontons,CHZWNTON,,sp.,http://2.bp.blogspot.com/-W-c9y2E3c9E/UCBq6mrCnHI/AAAAAAAAD9A/f7fqM7L2YgA/w1200-h630-p-k-no-nu/IMG_3133.JPG +Sesame Balls,SESAMEBL,,sp.,http://2.bp.blogspot.com/_tbCqVl2yqf8/Sdfjr2TFUGI/AAAAAAAAAcg/D8DRET6u7wI/w1200-h630-p-k-no-nu/sesame+balls+003-2.jpg +``` + +### localhost:3000/cashier + +

+ +

+ +### localhost:3000/menu + +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +### localhost:3000/display + +

+ +

diff --git a/disp.html b/disp.html index 6369c05..1446d23 100644 --- a/disp.html +++ b/disp.html @@ -1,215 +1,218 @@ - - - - - - - - -
-
- - - \ No newline at end of file + + + + + + + + +
+ + + diff --git a/menu.csv b/menu.csv index 11d3eea..d94455d 100644 --- a/menu.csv +++ b/menu.csv @@ -1,6 +1,6 @@ -name,shortname,limit,unit,image -Orange Chicken,ORNGCHKN,,sp.,https://farm5.staticflickr.com/4015/4655017334_45f4fffb54_z.jpg -Broccoli Beef,BROCBEEF,,sp.,https://pixnio.com/free-images/food-and-drink/szechwan-beef-broccoli-food-dinner.jpg -Fried Squid,FRDSQUID,,sp.,https://farm3.staticflickr.com/2669/4189339625_93029fa024_z.jpg -Cheese Wontons,CHZWNTON,,sp.,http://2.bp.blogspot.com/-W-c9y2E3c9E/UCBq6mrCnHI/AAAAAAAAD9A/f7fqM7L2YgA/w1200-h630-p-k-no-nu/IMG_3133.JPG +name,shortname,limit,unit,image +Orange Chicken,ORNGCHKN,,sp.,https://farm5.staticflickr.com/4015/4655017334_45f4fffb54_z.jpg +Broccoli Beef,BROCBEEF,,sp.,https://www.itsmydish.com/wp-content/uploads/2015/12/broccoli-beef-final2.jpg +Fried Squid,FRDSQUID,,sp.,https://farm3.staticflickr.com/2669/4189339625_93029fa024_z.jpg +Cheese Wontons,CHZWNTON,,sp.,http://2.bp.blogspot.com/-W-c9y2E3c9E/UCBq6mrCnHI/AAAAAAAAD9A/f7fqM7L2YgA/w1200-h630-p-k-no-nu/IMG_3133.JPG Sesame Balls,SESAMEBL,,sp.,http://2.bp.blogspot.com/_tbCqVl2yqf8/Sdfjr2TFUGI/AAAAAAAAAcg/D8DRET6u7wI/w1200-h630-p-k-no-nu/sesame+balls+003-2.jpg \ No newline at end of file diff --git a/menu.html b/menu.html index 16f25f8..c783fe0 100644 --- a/menu.html +++ b/menu.html @@ -1,649 +1,651 @@ - - - - - - - - -
-
- - - -
-
- -
- - - - \ No newline at end of file + + + + + + + + +
+
+ + + +
+
+ +
+ + + + diff --git a/screenshots/cashier_list.png b/screenshots/cashier_list.png new file mode 100644 index 0000000..1d8b986 Binary files /dev/null and b/screenshots/cashier_list.png differ diff --git a/screenshots/customer_code_entered.png b/screenshots/customer_code_entered.png new file mode 100644 index 0000000..1a77ffc Binary files /dev/null and b/screenshots/customer_code_entered.png differ diff --git a/screenshots/customer_confirmation.png b/screenshots/customer_confirmation.png new file mode 100644 index 0000000..8b280e3 Binary files /dev/null and b/screenshots/customer_confirmation.png differ diff --git a/screenshots/customer_init.png b/screenshots/customer_init.png new file mode 100644 index 0000000..ef03620 Binary files /dev/null and b/screenshots/customer_init.png differ diff --git a/screenshots/customer_selection.png b/screenshots/customer_selection.png new file mode 100644 index 0000000..14ab56e Binary files /dev/null and b/screenshots/customer_selection.png differ diff --git a/screenshots/expedite_order.png b/screenshots/expedite_order.png new file mode 100644 index 0000000..0f798ae Binary files /dev/null and b/screenshots/expedite_order.png differ