Git Product home page Git Product logo

bamazon's Introduction

The Bamazon mySQL app

The Bamazon app is an Amazon-like storefront. The app uses mySQL to take in orders from customers and deplete stock from the store's inventory. The store is populated with ten mock data products (inspired by a search on silly products sold online).

A description of how the app works:

  1. The app displays a table with all of the items available for sale, including item id's, product names department names and prices.

  2. Secondly, the app prompts the users to answer two questions:

  • What is the ID of the product that you would like to buy?
  • How many units of the product would you like to buy?
  1. The app repeats back the user input, and informs the current stock quantity of the requested item id.

  2. Lastly, if the store has enough of the product to meet the customer's request, it will update the SQL database to reflect the remaining quantity, and show the customer the total cost of their purchase.

  3. However, if the store does not have enough of the product to meet the customers request, the purchase will not go through.

The app uses the following npm packages:

  • mySQL
  • inquirer
  • cli-table

Screenshots illustrating the functionality of the app:


Screenshot illustrating the table and user input (points 1 and 2).


Screenshot illustrating the response if the item is in stock (points 3 and 4).


Screenshot illustrating the table and user input (points 1 and 2).


Screenshot illustrating the response if the item is NOT in stock (3 and 5).

bamazon's People

Contributors

kawboyer avatar

Stargazers

Ashley D avatar j0xhn avatar  avatar

Watchers

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