Code Monkey home page Code Monkey logo

bamazon's Introduction

Welcome to BAMAZON

Find everything you need at Bamazon! Bamazon, the node cli shopping app is an interactive app which allows the users to purchase items as a customer, view, track and update the product inventory as a manager, and track the total sales by department as a supervisor.

Getting Started

If you are downloading the npm package, run the following command in your terminal

sudo npm install bamazon-cli -g

bamazon-install

Commands

Once you download the bamazon-cli package enter the commands listed in the example below to explore bamazon. Once user enters bamazon in command line and hits enter, user can enter as customer, manager or supervisor.

bamazon-kw

Customer Portal

The customer interface allows the user to view the current inventory of store items: item ID, descriptions, and price. The user is then able to purchase one of the existing items by choosing the item name and the desired quantity. If the selected quantity is currently not in stock, the user is alerted insufficient quantity. If the selected quantity is currently in stock, the user's order is fulfilled, displaying the purchase price and updating the store database.

cust-welcome

cust-buy

cust-loquant

cust-paid

cust-exit

Manager Portal

The manager interface presents a list of five options:

  1. View Products for Sale: If the manager selects View Products for Sale, it lists all of the products in the store including all of their details.

  2. View Low Inventory: If the manager selects View Low Inventory, it lists all the products with less than five items in its stock quantity column.

  3. Add to Inventory: If the manager selects Add to Inventory, it allows the manager to select a product and add inventory.

  4. Add New Product: If the manager selects Add New Product, it allows the manager to add a new product to the store.

  5. Exit: If the manager selects Exit, it ends the session and doesn't go back to the menu.

man-ai

man-ai1

man-anp

man-vp-li

man-exit

Supervisor Portal

The supervisor interface presents a list of three options:

  1. View Product Sales by Department: If the supervisor selects View Product Sales by Department, it lists the Department Sales and calculates the total sales from the overhead cost and product sales. User is also given 3 options, Yes, No and Change to Customer/Manager. If the user wants to exit, user can click No. If the user clicks yes, user can create new department. If user clicks on Change to Customer/Manager, the user can choose to use the customer or manager interface.

  2. Create New Department: If the supervisor selects Create New Department, it allows the manager to create a new department and input current overhead costs and product sales. User is also given 3 options, Yes, No and Change to Customer/Manager. If the user wants to exit, user can click No. If the user clicks yes, user can view product sales by department. If user clicks on Change to Customer/Manager, the user can choose to use the customer or manager interface.

  3. Exit: If the supervisor selects Exit, it ends the session and doesn't go back to the menu.

sup-welcome

sup-vp

sup-vp1

sup-vp2

sup-cnd

sup-cnd1

sup-cnd2

NPMs Used

inquirer, mysql, chalk, cli-table-redemption

bamazon's People

Contributors

lramac3 avatar dependabot[bot] avatar

Stargazers

Jarius Hayes 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.