Giter Site home page Giter Site logo

zoe-gonzales / bamazon Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2.98 MB

Node CLI app acting as an online store. Customer, manager, and supervisor views allow user to view, update, delete, and add data to MySQL database.

JavaScript 96.74% TSQL 3.26%

bamazon's Introduction

bamazon

Summary

Bamazon is a Node.js CLI app that functions like an online store. Three views - customer, manager, and supervisor - allow functionality that mimics shopping in a store, viewing and updating inventory, and viewing total sales by department. All bamazon data is stored in a MySQL database.

npm modules used

inquirer, mysql, table

Installation

  • Clone this repository to the directory of your choice
  • Run npm install
  • Run the SQL in schema.sql in MySQL Workbench; repeat for seeds.sql
  • Run one of the following: node bamazonCustomer, node bamazonManager, node bamazonSupervisor
  • Manager View
    • username: manager
    • password: hello
  • Supervisor View
    • username: supervisor
    • password: hola
  • Follow the prompts related to the selected view

Customer view

With this view, users can:

  • Search for current products for sale and purchase multiple units of a product

Bamazon browse view

Bamazon Browse View

Selecting a product for purchase

Selecting a product for purchase

Product purchased

Product purchased

Demo: https://drive.google.com/file/d/1KhEeAXQXEvmXOEZK265q2SPT_O9WfqDJ/view?usp=sharing

Manager View

With this view, users can:

  • View all inventory currently in stock
  • View all products with low inventory (less than 5 units in stock)
  • Restock inventory for any existing products
  • Create new products, specifying name, department, price, and quantity
  • Delete existing products in the inventory

Manager main menu

Manager main menu

Updating inventory for selected product

Updating inventory for selected product

Inventory updated

Inventory updated

Demo: https://drive.google.com/file/d/1sXDVgRaF7lm2l9tFyDU2ajeHfe820B6i/view?usp=sharing

Supervisor View

With this view, users can:

  • View total sales by department (based on stock purchased in customer view)
  • Create a new department, specifying name and overhead costs

Supervisor main menu

Supervisor main menu

Total Sales by department

Total Sales by department

Demo: https://drive.google.com/file/d/1Wo2SxJ4ebBQTI1Gw9FEbzWdEyQ5rVlZH/view?usp=sharing

bamazon's People

Contributors

zoe-gonzales avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.