An Amazon.com-like storefront app which can be viewed and accessed from the perspective of the customer, manager or supervisor.
MySQL database populated with following table: ```item_id (unique id for each product)
product_name (Name of product)
department_name
price (cost to customer)
stock_quantity (how much of the product is available in stores)
```
To initialize the program, enter node bamazonCustomer.js
.
You are then prompted whether you’re ready to select and purchase an item.
After selecting yes (Y), a list of available items stored in the server will display and you can use the arrow keys to select your item. You could also enter the number of the item, hit enter, and that item will be selected.
;
This image shows that the options expand as one keys down or up with the arrow keys.
Once selected, you will be asked what quantity of the item you would like.
Here you can enter the quantity number, and hit enter.
You will then either recieve a message that the purchase was completed successfully (if there is sufficient quantity), or a message that states that there is insufficient quantity.