This is a command-line Node.JS and MySQL application for buying and tracking retail inventory.
The following must be installedto use Bamazon:
We first need to use set up our inventory be using MySQL Workbench to create a database of the products we are selling:
The command line is: node bamazonCustomer.js
- Notice that it will print out the table that we created from MySQL workbench.
- Then it will ask the user which item they would like to purchase by typing in the items id number.
- Next, it wil ask the user the amount they would like to purchase.
- Once the transaction is completed, the user will be notified with this message: "You succefully bought the product!"
- Then, the database will be updated with the new inventory quantity and the new data will be displayed on the terminal.