inventoryOrderJawn_Bamazon

This is a product sales and inventory order management platform of to demonstrate the interoperabiltiy between SQL and node.JS

There are two (2) functional apps for this repository, bamazonCustomer.js and bamazonManager.js

A database, bamazon_db was set-up, and is executable with the bamazon_seeds.sql file

Deployment

Git clone the files to a local directory of your choice. Make sure to run the npm installations!

Built With

The following screenshots walk the user through how each app operates:

(1) bamazonCustomer.js

On file-execution in the terminal, the user is prompted with the Sales menu and prompted to make a purchase:

Screen Shot 2019-04-29 at 11 00 21 AM

The prompt walks the user through the operations to make purchases.

The user is prompted to enter an item for puchase by its ID number.

Screen Shot 2019-04-29 at 5 23 31 PM

If the user make a purchase that depletes inventory of a product, it will remove it from the menu.

Otherwise, it will merely update the remaining stock quantity following the order.

The data validation also checks to see if the user selects a product ID that unavailable/not found in the menu offerings.

(2) bamazonManager.js

On file-execution in the terminal, the user is prompted to choose what action they wish to perform:

Screen Shot 2019-04-29 at 11 06 04 AM

The user is walked-through various prompts per the action selected.

(2a) View All Items

Screen Shot 2019-04-29 at 5 14 38 PM

(2b) View Low Inventory Items

Screen Shot 2019-04-29 at 5 14 57 PM

(2c) Update Item Stock Quantity Inventory

Screen Shot 2019-04-29 at 5 15 58 PM

(2d) Add a new Item with Stock Quantity Inventory

Screen Shot 2019-04-29 at 5 17 05 PM

Authors