Giter VIP home page Giter VIP logo

mysql-bamazon's Introduction

MySQL-Bamazon

I created an Amazon-like storefront with the MySQL skills. The app takes in orders from customers and depletes stock from the store's inventory. Moreover, I programmed bamazon to track product sales across your store's departments and then provide a summary of the highest-grossing departments in the store.

Customer View

The Node application called bamazonCustomer.js. Running this application will first display all of the items available for sale. Include the ids, names, and prices of products for sale.

1

Once the customer has placed the order, my application checks if the store has enough of the product to meet the customer's request. This means updating the SQL database to reflect the remaining quantity. Once the update goes through, bamazon shows the customer the total cost of their purchase.

2

Manager View

The Node application called bamazonManager.js. Running this application lists a set of menu options:

  • View Products for Sale
  • View Low Inventory
  • Add to Inventory
  • Add New Product
  • Quit

1

View Products for Sale

If a manager selects View Products for Sale, the app lists every available item: the item IDs, names, prices, and quantities.

2

View Low Inventory

If a manager selects View Low Inventory, then it lists all items with an inventory count lower than 130.

5

Add to Inventory

If a manager selects Add to Inventory, your app displays a prompt that lets the manager "add more" of any item currently in the store.

4

Add New Product

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

3

Supervisor View

Running bamazonSupervisor.js lists a set of menu options:

  • View Product Sales by Department
  • Create New Department
  • Quit

1

View Product Sales by Department

When a supervisor selects View Product Sales by Department, the app displays a summarized table. The total_profit column is calculated on the fly using the difference between over_head_costs and product_sales.

2

Create New Department

3

Project Installation

There are two methods to download the repository.

Method I: Familiar with Git?

Clone this repository, install dependencies, then run the project with the following:

> git clone [email protected]:artprofi91/MySQL-Bamazon.git
> cd MySQL-Bamazon
> npm install

Not Familiar with Git?

Click here then download the .zip file. Extract the contents of the zip file, then open your terminal, change to the project directory and:

> npm install

Hint

Don't forget to change password in bamazonCustomer.js, bamazonManager.js and bamazonSupervisor.js.

mysql-bamazon's People

Contributors

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