Skip to content

Create a store management application using NodeJS. Allows users to manipulate data (MySQL) by allowing customer to purchase products, manager to re-stock the products and supervise the low inventory products.

Notifications You must be signed in to change notification settings

kotchaparn-w/Bamazon

Repository files navigation

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

About

Create a store management application using NodeJS. Allows users to manipulate data (MySQL) by allowing customer to purchase products, manager to re-stock the products and supervise the low inventory products.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published