Skip to content
/ Bamazon Public

An Amazon.com-like storefront which can be viewed and accessed from the perspective of the customer, manager or supervisor via Node.js Express terminal

Notifications You must be signed in to change notification settings

taddes/Bamazon

Repository files navigation

Bamazon

An Amazon.com-like storefront app which can be viewed and accessed from the perspective of the customer, manager or supervisor.  

Image


MySQL database populated with following table:


product_name (Name of product)

department_name

price (cost to customer)

stock_quantity (how much of the product is available in stores)

To initialize the program, enter node bamazonCustomer.js.

Image


You are then prompted whether you're ready to select and purchase an item.

Image


After selecting yes (Y), a list of available items stored in the server will display and you can use the arrow keys to select your item. You could also enter the number of the item, hit enter, and that item will be selected.

Image;


This image shows that the options expand as one keys down or up with the arrow keys.

Image


Once selected, you will be asked what quantity of the item you would like.

Image


Here you can enter the quantity number, and hit enter.

Image


You will then either recieve a message that the purchase was completed successfully (if there is sufficient quantity), or a message that states that there is insufficient quantity.

Image


About

An Amazon.com-like storefront which can be viewed and accessed from the perspective of the customer, manager or supervisor via Node.js Express terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published