Code Monkey home page Code Monkey logo

bamazon's Introduction

Bamazon

Bamazon is a Node.js CLI web store that provides views for shoppers, managers, and admins. It uses MySQL to store data.

This project demonstrates:

  • Inquirer npm package
  • MySQL npm package
  • MySQL queries
  • Modular functions
  • Arrow functions
  • User input validation

How it works

Shopper view

Shoppers can run node bamazonCustomer.js to see the full inventory. They can then select an item and enter the desired quantity. If there is sufficient quantity, the inventory will be decremented accordingly and the shopper will be notified of their order total. If there is insufficient quantity, the shopper will be notified and returned to the inventory to list.

Customer view

Manager view

Managers can run node bamazonManager.js to see a list of manager options. Managers can see full invenotry, see a list of items with a quantity lower than five, update the quantity of an item, and add new items.

Manager view

Supervisor view

Supervisors can run node supervisorManager.js to see a list of supervisor options. Supervisors can see the total profit per department (overhead costs subtracted from sales) and add new departments.

Manager view

How to install and run Bamazon

  1. Fork or download this repository.
  2. Create a MySQL database using bamazonDB.sql.
  3. Update modules/db_connection.js with your database information.
  4. Run npm install to install the Inquirer and MySQL packages.
  5. Access the views by using the following commands: node bamazonCustomer.js,
    node bamazonManager.js, or node bamazonSupervisor.js.

bamazon's People

Contributors

esharri2 avatar

Stargazers

Josh Christensen avatar

Watchers

James Cloos 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.