/Bamazon

Primary LanguageJavaScript

Bamazon

Overview

Bamazon is a command line application that uses the SQL database. There are two command options, customer or manager. The customer can buy products from the store, while the manager has four different options.

Bamazon Customer Option

When run the customer will see a list of products available to buy and then be asked to select a product by it's id number. Then they will be asked how many of the product they would like to buy. Once they select, it will show the total amount of which product they bought and the cost of the total sale. The products database will update to reflect inventory change.

first screenshot

Bamazon Manager Option

When run the manager will have four options:

  1. View products for sale
  2. View low inventory
  3. Add to inventory
  4. Add new product

Option 1

This shows all products

second screenshot

Option 2

This shows all items with low inventory (below 15 units)

third screenshot

Option 3

This allows the manager to add new inventory to a selected product

fourth screenshot

Option 4

This allows the manager to add a new item into the table

fifth screenshot

Technologies Used

  • Javascript
  • NodeJS
  • MySQL
  • npm packages:
    • mysql
    • prompt
    • colors