This is a CLI app that uses node.js and MySQL to create an Amazon-like frontpage, where customers can place orders and be given a total, managers can view and update the products on sale, and supervisors can review the stores budget.
The first view is that of the customer, where all the products on sale are listed and the customer can place an order and receive the total cost of the order:
If the customer tries to order a greater quantity than is in stock, they will receive an error message:
The second view is for a manager. The manager can choose from a dropdown list of 4 options:
The first option the manager has is to view the store's complete stock, with each item and its quantity:
The second option the manager has is to view only those items that have fewer than 5 left in stock:
The third option the manager has is to add to an item's inventory (in this case item 3):
Item 3 now has 2 more in stock:
The fourth and final option for a manager is to add an entirely new item to the store:
As you can see, the list of items for sale now includes the running shorts just added:
The third view is that of the supervisor, who can either view the store's finances, or add a department:
The supervisor can view a breakdown by department:
Finally, the supervisor can create a brand new department: