Homework Week 12 - Bamazon
You will also need to run npm install to get the right packages from the package.json
- In a gitBash terminal run: node bamazonCustomer.js
-
After the welcome message, the items for sale will be displayed
-
Users will be prompted to enter the item number and the quantity. The inventory quantity of the selected item will be decremented by the amount the user specifies and the user will get feedback on thier order status and the total price. User is then asked if they wish to continue shopping.
-
If the is insufficient quantity in stock the user will get a message and asked if they wish to continue shopping.
-
- In a gitBash terminal run: node bamazonManager.js
-
After the welcom message, the manager will be given a list of actions that can be done. After user completes each action they will return to this menu.
-
View Products for Sale: List all of the items in the products table
-
View Low Inventory: List all items in the products table where the quantity in stock is less tha 5.
-
Add to Inventory: User is propmpted to select an item and an amount to restock. The quantity in stock is incremented by the user specified amount.
-
Add New Product: User will be prompted for product name, department and price.
-
- In a gitBash terminal run: node bamazonSupervisor.js
-
After the welcom message, the manager will be given a list of actions that can be done. After user completes each action they will return to this menu.
-
View Product Sales by Department: User can view the departments, their costs, their sales, and how much profit they are making:
-
Create New Department: User is prompted to enter a department name, and over head costs:
-