Interactive online storefront / Command line app that take orders from customers and deplete stock from the store's inventory. Also allow to view, track, add and update the product inventory as a manager
The Bamazon Customer view allows users to view the current items available for purchase. The user will be prompted to enter the Product id number and how many items they wish to purchase. If the item is in stock, the order will be completed and the user will see the total amount of their purchase.
To run the customer view use the following command:
** node bamazoncustomer.js
The Bamazon Manager view allows users to view and edit the inventory of the store. The user will be prompted to choose from the following options:
- View products for sale: the app list every available item including their id's, names, prices, and quantities
- View low inventory: the app list all items with a inventory count lower than five
- View departments: the app list every department created
- Add to inventory: the app display a prompt that will let the manager "add more" of any item currently in the store.
- Add a new product: the app allow the manager to add a completely new product to the store.
To run the Manager view use the following command:
* node bamazonmanager.js
The Bamazon Supervisor view allow will show users a summarized view of the store sales and profits. The user will be prompted to choose from the following options:
- View Product Sales by Department
- View Departments
- View Sales
- Create New Department
To run the Supervisor view use the following command:
** node bamazonsupervisor.js
###Author
Rhyna Silva
###Technologies Used:
- Javascript
- nodeJS
- MySQL
- npm packages:
- mysql
- inquirer
- cli-table
Copyright 2017 Rutgers Coding Bootcamp - Rhyna Silva