A store Forefront
- It will take in orders from customers and deplete stock from the store's inventory
Use BAMAZON to get
- stock quantity left in store
- order goods
- Type in the command " node bamazon.js " This will pull up all items in Stock. You will then be asked to Enter product ID
- Enter product ID
- AFter typing in the product ID you will be prompted with a question that asks how many items of the product you want to buy
- The user will be prompted with a message that reads "In Stock!" followed by the Total price for the product selected.
The application will then show avalable products in stock followed by the purchase