GithubHelp home page GithubHelp logo

solid-g1_hoang-yen-cuisine's Introduction

๐Ÿฒ Hoang Yen Cuisine ๐Ÿฒ

Features

  • View today's menu ๐Ÿ“œ
  • Place lunch order ๐Ÿœ
  • Receive notification of new lunch dishes ๐Ÿ’Œ
  • Pay lunch ๐Ÿ’ต
  • For Yen only ๐Ÿ‘ง
    • generate report of all orders that have been made for today ๐Ÿ“Š
    • add new dish to menu โž•๐Ÿ—

Limitation

  • No persistent database, only memory ๐Ÿ’ข
  • No authentication mechanism, hard-code username ๐Ÿ’ข
  • No GUI, command line only ๐Ÿ’ข

How to use

As an ordinary user The happy workflow:

1.login with your name 2.view menu 3.make order(s) 4.pay them

>>>   Welcome to Hoang Yen Cuisine   <<<
usage: hoang_yen_cuisine
 -addDish              Add new dish for today. Usage:
                       -addDish [{"name":"ca","price":25},{"name":"dau-hu","price": 25}]
 -help                 Prints out usage
 -menu                 View menu
 -order <ID of dish>   Orders a lunch
 -pay                  Pays your order within this week
 -poweroverwhelming    God mode
 -quit                 Burns it down
 -report               Generate reports
 -user <username>      Sets username
Enter your command: -menu
>>> MENU for today <<<
Dish 1: Pork, price: 30
Dish 2: Beef, price: 40
Dish 3: Chicken, price: 25
Dish 4: Prawns, price: 40
Dish 5: Salmon, price: 60
Dish 6: Rice, price: 5
Dish 7: Pizza, price: 110
Enter your command: -user phuc
Welcome phuc!
Enter your command: -order 7
You have made an order: Order [id=1, username=phuc, dish=Dish 7: Pizza, price: 110]
Enter your command: -order 2
You have made an order: Order [id=2, username=phuc, dish=Dish 2: Beef, price: 40]
Enter your command: -pay
My lunch orders:
    #1: Pizza - 110
    #2: Beef - 40
----------------
Your bill is 150k VND

You have two payment method:      1. Card      2. Cash 
Which one you choose? 

2
Need not to enter card number
Please Enter Your Address:
desk 420
SUCCESS
Enter your command: -quit
Have a nice day!

As Yen (superuser) Activate this mode with option poweroverwhelming to unlocks additional features: generates report, add new dish(es) to menu. For better user experience, please follow the following scenario:

1.log in as normal user (phuc, tan) 2.make orders (in order to populate datatabse) 3.activate god mode 4.generate reports 5.add dish 6.verify new dish is added by viewing menu


>>>   Welcome to Hoang Yen Cuisine   <<<
usage: hoang_yen_cuisine
 -addDish              Add new dish for today. Usage:
                       -addDish [{"name":"ca","price":25},{"name":"dau-hu","price": 25}]
 -help                 Prints out usage
 -menu                 View menu
 -order <ID of dish>   Orders a lunch
 -pay                  Pays your order within this week
 -poweroverwhelming    God mode
 -quit                 Burns it down
 -report               Generate reports
 -user <username>      Sets username
Enter your command: -user phuc
Welcome phuc!
Enter your command: -order 2
You have made an order: Order [id=1, username=phuc, dish=Dish 2: Beef, price: 40]
Enter your command: -order 3
You have made an order: Order [id=2, username=phuc, dish=Dish 3: Chicken, price: 25]
Enter your command: -user tan
Welcome tan!
Enter your command: -order 1
You have made an order: Order [id=3, username=tan, dish=Dish 1: Pork, price: 30]
Enter your command: -order 4
You have made an order: Order [id=4, username=tan, dish=Dish 4: Prawns, price: 40]
Enter your command: -poweroverwhelming
All your base are belong to us
Enter your command: -report
tan
     Order 3:  Pork 30
     Order 4:  Prawns 40
Total: 70
----------------------------
phuc
     Order 1:  Beef 40
     Order 2:  Chicken 25
Total: 65
----------------------------

Enter your command: -addDish [{"name":"Crab","price":80}]
Enter your command: -menu
>>> MENU for today <<<
Dish 1: Pork, price: 30
Dish 2: Beef, price: 40
Dish 3: Chicken, price: 25
Dish 4: Prawns, price: 40
Dish 5: Salmon, price: 60
Dish 6: Rice, price: 5
Dish 7: Pizza, price: 110
Dish 8: Crab, price: 80
Enter your command: -quit
Have a nice day!

solid-g1_hoang-yen-cuisine's People

Contributors

the-only-phuc-you-know avatar thanglequoc avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.