Skip to content

Holgermueller/Bamazon

Repository files navigation

Bamazon

A node powered online shopping center.

To create this, you'll need to download the following node packages:

  • Mysql
  • Inquirer
  • Colors

See it work:

Bamazon Customer:

  1. First, run the command node bamazonCustomer.js.

Image of Step one

  1. Node then displays the list of items in the databse.
  2. Select which item you'd like to buy.

Image for steps two and three

  1. Once you've selected the item you'd like to buy, enter the quantity you'd like to purchase.

Image for step 4

Image for step 5

  1. If you there isn't enough stock to fulfill the order, this message will appear in red.

image for step 6

  1. However, if there is enough stock to fulfill the order, this message will appear:

image for step 7

image for conclusion

  1. At the same time, the quantity of the ordered item will be subtracted from the MySQL database.

mysqlimg1

mysqlimg2

Bamazon Manager:

  • The Bamazon Manager app runs in a manner very similar to the Bamazon customer app, but with a few more-complicated lines of code.