This is an Amazon-like application where a list of products and the price for each will be presented from a table in Sequel Pro. An order will be taken from customers and the stock will be depleted after the order is confirmed. Then the customer will be given a prompt to order again. A yes answer will take them back to the updated list and a no answer will end the application.
The table in Sequel Pro:

The list of products in bamazonCustomer.js:

The product that the customer wants to buy and the quantity (#6 and quantity of 3 - that should be all of the stock):

Order confirmed with updated stock quantity:

Customer is getting ready to buy #1:

But the customer decides not to confirm the order and the application is exited.

The customer tries to order more #6, but there is insufficient quantity:
