Skip to content

stevemazanec/bamazon

Repository files navigation

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:

product list

If the customer tries to order a greater quantity than is in stock, they will receive an error message:

insufficient quantity

The second view is for a manager. The manager can choose from a dropdown list of 4 options:

dropdown menu

The first option the manager has is to view the store's complete stock, with each item and its quantity:

store stock

The second option the manager has is to view only those items that have fewer than 5 left in stock:

low stock

The third option the manager has is to add to an item's inventory (in this case item 3):

add inventory

Item 3 now has 2 more in stock:

item added

The fourth and final option for a manager is to add an entirely new item to the store:

new item

As you can see, the list of items for sale now includes the running shorts just added:

running shorts

The third view is that of the supervisor, who can either view the store's finances, or add a department:

supervisor view

The supervisor can view a breakdown by department: departments

Finally, the supervisor can create a brand new department:

new department

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published