Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.8 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.8 KB

Bamazon

Purpose

Learning how to apply 2 technologies to create shopping and database management applications.

Technologies

  • NodeJS
  • MySQL

How to use an application

  • First thing first install all npm from package.json to run this application properly

Customer Application

  1. Open the Terminal or Bash and use command node bamazonCustomer.js.

  2. Then you will see all available products and be prompted asking Data Table

  3. Once you enter the product ip you will be promted asking Purchasing product

  4. Then you will be shown the total price and prompted confirming Confirmation

  5. If you enter or type Y and enter, you will successfully make a purchase Update Table

    • Otherwise if you type N and enter you will be quit of the application.

Manager Application

  1. Open the Terminal or Bash and use command node bamazonManager.js.

  2. Once you are connected to the mySQ you will be promptd asking Initial Prompt

  3. If you select View Products for Sale then you will be shown with all product data table Data Table

  4. If you select View Low Inventory then you will be shown with all products data table that stock less than 5 Data Table

  5. If you select Add to Inventory then you will be shown with all products data table that stock less than 5 and prompted asking Add data

  6. If you select Add New Product then you will be prompted asking all mandatory questions for adding a new inventory Add New Product Prompt

    1. Once you finish filling out the information you will be shown all new data talble New Data Table