Giter VIP home page Giter VIP logo

bamazon's Introduction

Bamazon

Bamazon is a Node CLI application consisting of an e-commerce marketplace where customers can make purchases and managers can add products and replenish inventory. These two views are separated into two different files, bamazon-customer.js and bamazon-manager.js. In these files, the customer or manager is prompted with choices of actions to take to view what items are being sold and interact with the marketplace. The inventory of items for sale is managed and updated via queries to a MySQL database.

Screenshots

Customer View - Successful Purchase

Node Screenshot 1

A customer makes a purchase of a product that is in stock. The customer is charged according to the quantity of the item they purchase.

Customer View - Low Stock Purchase Cancellation

Node Screenshot 2

A customer tries to purchase a quantity of an item greater than the quantity in stock. The transaction is cancelled and the customer is told how many units remain in stock.

Customer View - Out-of-Stock Purchase Cancellation

Node Screenshot 3

A customer tries to purchase an item that is not in stock. The transaction is cancelled and the customer is told that the item is not in stock.

Manager View - View Products for Sale

Node Screenshot 4

A manager views all items for sale on the marketplace. Managers are able to see how many units remain in stock for each item.

Manager View - View Low Inventory Products

Node Screenshot 5

A manager views low inventory products. This displays on the items that have less than 5 units remaining in stock.

Manager View - Add Inventory

Node Screenshot 6

A manager increases the inventory of an out-of-stock item. When the manager views the inventory again, you can see the increase in the inventory for that item.

Manager View - Add a New Product

Node Screenshot 7

A manager adds a new product to the marketplace. When the manager views the inventory again, you can see the increase in the inventory for that item.

Future Updates

In the future, I would like to track revenue by product department. In order to do this, I would create another MySQL database for product sales. I would need to modify the code in bamazon-customer.js in order to update this additional database. The final step would be to make a third javascript file, bamazon-supervisor.js. When this file is run, a supervisor is given the option to view sales by department, which would display a table showing each department and their revenues. Supervisors would also have the option to create a new product department.

bamazon's People

Contributors

bcmiller713 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.