GithubHelp home page GithubHelp logo

nss-day-cohort-17 / bangazon-cli-ordering-system-nada-rebuttals Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 44 KB

bangazon-cli-ordering-system-nada-rebuttals created by GitHub Classroom

JavaScript 100.00%

bangazon-cli-ordering-system-nada-rebuttals's Introduction

Bangazon

The Command Line Ordering System

In this group project, you will be allowing a user to interact with a basic product ordering database.

Ordering System Interface

Main Menu

*********************************************************
**  Welcome to Bangazon! Command Line Ordering System  **
*********************************************************
1. Create a customer account
2. Choose active customer
3. Create a payment option
4. Add product to shopping cart
5. Complete an order
6. See product popularity
7. Leave Bangazon!
>

Create Customer

Enter customer name
>

Enter street address
>

Enter city
>

Enter state
>

Enter postal code
>

Enter phone number
>

Choose active customer

Which customer will be active?
1. John Q. Public
2. Svetlana Z. Herevazena
>

Create Payment Option

Enter payment type (e.g. AmEx, Visa, Checking)
>

Enter account number
>

Add Product to an Order

Note: These are examples. Add your own product names, please.

To make it easier to add multiple products, when the user selects a product to order, display the menu of products again. Make sure the last option of Back to main menu so the user can specify that no more products are needed.

1. Diapers
2. Case of Cracking Cola
3. Bicycle
4. AA Batteries
...
9. Done adding products

Complete an Order

If no products have been selected yet
Please add some products to your order first. Press any key to return to main menu.
If there are current products in an order
Your order total is $149.54. Ready to purchase
(Y/N) >

# If user entered Y
Choose a payment option
1. Amex
2. Visa
>

Your order is complete! Press any key to return to main menu.

# If user entered N, display the main menu again

Once the order is complete, show the main menu again, where the user can start creating another order.

See Product Popularity

When selecting this option, you will produce a command line report that looks like the following.

Product           Orders     Customers  Revenue
*******************************************************
AA Batteries      100         20        $990.90
Diapers           50          10        $640.95
Case of Cracki... 40          30        $270.96
*******************************************************
Totals:           190         60        $1,902.81

-> Press any key to return to main menu
  1. The product column must be 18 characters wide, and will display a maximum of 17 characters for the product name.
  2. The orders column must be 11 characters wide.
  3. The customers column must be 11 characters wide.
  4. The revenue column must be 15 characters wide.

Requirements

You will create a series of prompts that will allow the user to create various types of data in your ordering system.

  1. Use the npm module prompt to create an interface for prompting your user for input.
  2. Your team must have full test coverage for all functionality. Start with writing unit tests.
  3. You must use the db you created in the earlier SQL exercise. Choose one team member's implementation to be your group's database.
  4. For the Product Popularity section, search for an npm module that will output your report in table format to the console.

FLOW CHART: https://www.draw.io/#G0B3tElSLuE0l3ZXAycG1RWlRZTm8

bangazon-cli-ordering-system-nada-rebuttals's People

Contributors

jaredshane avatar jufebrown avatar dmserrano avatar joeshep avatar

Watchers

James Cloos avatar  avatar Callan Morrison 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.