Bamazon isa shopping app that helps customer/manager/supervisor to shop/list/manage products
Node packages installed in this
Before running the js file use terminal to install the above mentioned packages using the command npm i
If the user(customer) wants to shop, the following command should be typed in
node bamazonCustomer.js
When this command runs, the inquirer prompt will run and will ask the user to choose an item to buy
The following will be happening
After choosing the product the customer will be prompted for quantity
If the user types in a quantity > available stock
The following will be the output
If the user(manager) wants to perform his tasks, should run the following command
node bamazonManager.js
When this runs the manager will be prompted to choose from four options as the following
If the manager chooses "View products for sale"
The following will be the output
If the manager chooses "View low inventory"
The following will be the output
If the manager chooses "Add to inventory"
The following will be the output
If the manager chooses "Add new product"
The following will be the output
If the user(supervisor) wants to perform his tasks, should run the following command
node bamazonSupervisor.js
When this runs the manager will be prompted to choose from following options
view products for sale
Add new department
Quit
If the supervisor chooses "view products for sale"
The following will be the output
In all the views, if "Quit" is chosen the database connection ends and the app quits!s