Skip to content

DavidLapadula/StoreFrontSQL

Repository files navigation

Store Front SQL

Table of contents

  1. Description
  2. Technology
  3. Installation
  4. Usage

Description

Command line application that simulates an inventory management system, allowing users to add, remove, and track items with ease. It features customer purchase functionality, manager capabilities for adding inventory and products, and supervisor access for viewing sales and department management.

Technology

Installation

  1. Ensure you have Node, MySQL server, and MySQL workbench installed; links in the Technology section.
  2. Open the connection.js file and add the connection values for your local MySQL server.
  3. Clone the repository to your local machine.
git clone https://github.com/DavidLapadula/StoreFrontSQL.git
cd storefrontsql
  1. Open a terminal in the root directory and run:
npm install
  1. Use the schema.sql and seeds.sql to populated the database. They can be modified if you wish.
  2. Open a terminal in the root directory and run the file associated to the role you would like to perform. The options are:
node bamazonCustomer.js
node bamazonManager.js
node bamazonSupervisor.js

Usage

Customer: user can use item IDs to make purchases, prompts them to retry if the ID is incorrect, informs them if the order exceeds stock, and, if valid, processes the order, updates the database, and displays the order information.


Customer 1 Customer 2

Manager: user can perform various duties to check stock and change inventory, including viewing products for sale, viewing low inventory, adding to inventory, and adding new products.


View products for sale

Manager view products

View low inventory

Manager view low qty

Add to Inventory

Manager add to inventory

Add a new product

Manager add product

Supervisor: user can perform all the duties of a supervisor, including viewing product sales by department, creating new departments, and viewing the highest-grossing department.


supervisor duties

View sales by department

supervisor view sales

Create new department

supervisor create dept

View Highest grossing department

supervisor high grossing

About

Inventory Application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published