Giter Club home page Giter Club logo

bamazon's Introduction

Node.js & MySQL: BAMAZON

Overview

Bamazon is an Amazon-like storefront. The app takes orders from customers and updates quantity on hand. It uses npm's MySQL and Inquirer packages for data input and storage.

Customer View: App Demo

To see how the app works, click here for a demo.

Functionality

  1. The application starts with a display of all of the items available for purchase.

  2. The user is then prompted to select the ID of the product they want to buy followed by the number of units they want to purchase.

  3. Once the user has placed the order, the application checks the quantity on hand to make sure it is sufficient to fill the order.

  4. If the quantity on hand is not sufficient, the order is canceled and the following message is displayed: Insufficient quantity!.

  5. If the quantity on hand is sufficient, the SQL database is updated to reflect the remaining quantity and the user is shown the total cost of their purchase.


Manager View: App Demo

To see how the app works, click here for a demo.

Functionality

  1. The application starts with a display of menu options.

  2. If 'View Products for Sale' is selected, all available items are displayed.

  3. If 'View Low Inventory' is selected, all items with an inventory count lower than 50 are displayed.

  4. If 'Add to Inventory' is selected, a prompt is displayed that will let the user increase inventory of any item currently in stock.

  5. If 'Add New Product' is selected, the app will prompt the user to add a new product to the store.


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.