Node.js-MySQL

This app is meant to emulate Amazon and it is appropreiately named “Bamazon”. It used JS, My MQL and the npm install package to use mysql and prompt. The products are organized into “Product ID, Product Name, Department Name, Price and stock quantity”. The User is asked to input the ID of the item he or she would like to buy, and then is prompted to enter a number that they want to buy. If it is less than the stock quantity, they are able to “buy” and it shows the total price. If they want more than the number in stock, they are given an given a prompt that says that there is not that enough in the stock quantity. They are then asked if they would like to make a second purchage and have to input “y” for yes and “n” for no. If they say yes, the list of products is displayed again and they are asked for the Product ID and the process repeats.