Wintermutate / Bamazon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bamazon

To run the script, you will need to install the 'mysql' and 'inquirer' npm packages

$ npm install mysql --save 
$ npm install inquirer --save

To begin the program run this command,

$ node BamazonCustomer.js

If you want to exit the program at any time, press CTRL + c twice

When you first run the program, a list of available items will be displayed and you will be prompted with questions regarding a purchase.

Run

After selecting a valid item and quantity, you will be given the total cost.

Successful Purchase

An updated table of items will be displayed again if you want to continue with another purchase.

If you try to purchase an amount greater than the current stock quantity, your purchase will not be processed and you will need to order again.

Failed Purchase

##Bamazon Manager To begin the program run this command,

node BamazoManager.js

If you want to exit the program at any time, press CTRL + c twice

When you first run the program you will be prompted to select an action based upon a list of actions.

Main Menu

Selecting the first option will bring up a list of products for sale and then will prompt the user for further actions.

View Inventory

Selecting the second option will provide a list of all current items with a Stock Quantity less than or equal to 5.

Low Quantity

Selecting the third option will prompt the user to select an item then input the amount to increase Stock Quantity of selected item. It then prints the current inventory to console and prompts for further action.

Update Inventory

Selecting the final option allows for creation of a new item into the inventory. The user is prompted to enter all pertinent fields.

Add to Inventory

About


Languages

Language:JavaScript 100.0%