Running bamazonCustomer.js in node will start a CLI store front that allows you to purchase products.
The user will be presented with a list of products offered by the store.
Select the corresponding number to chose your product. You will then be prompted to input the amount of the product you would like to purchase. A prompt asking if this is the correct amount will pop up. Input Y for yes and N for no. It is important that you are positive this is the correct amount as the order will placed and you will not be able to cancel it. If your order is correct and there is enough available stock to complete your order you will be notified of total amount and the order will be entered.
Running bamazonManager.js in node will allow the user to run a few different commands to check on and update the store database
Shows you all the information of the products in the database in this order
item_id|Product|Department|Price|Stock
Shows you all products that have stock less than or equal to 5
Allows you to add inventory to your stock. You are prompted to enter the id of the product. If you do not know the id use View Products for Sale to check. After entering the id you will be prompted to enter how much stock you would like to add.
Allows you to add new products to the store. You will be prompted to enter the product name, department, price, and quantity.