Giter Site home page Giter Site logo

bamazon's Introduction

bamazon

This is a command line interface app which need to be run using node.js. Leaning on mysql and inquirer packages to do all the work.

Levels

Level 1 - bamazonCustomer.js

App in Action

GitHub Logo

  • Make sure you install the npm packages (mysql, inquirer) before running anything.
  • Open bash terminal window and run (node bamazonCustomer.js).
  • You will see all the products available in the store.
  • You will then be asked to enter the item_id and quantity you want to purchase.
  • Once all the input are entered you will see your oder details.
  • If there is not enough quantity in the inventory of the product you selected you will be asked to modify your order and prompted again.

Level 2- bamazonManager.js

App in Action

GitHub Logo

  • Open bash terminal window and run (node bamazonManager.js).
  • You will be asked to choose what to do.
  • If you choose (View Products For Sale), you will get the results of all available products, then prompted again with the choices.
  • If you choose (View Low Inventory), you will get the results of products that have 5 or less item quantity in the stock. Then prompted again with the choices.
  • If you choose (Add to Inventory), you will be asked to enter the item_id and quantity to be added, then you will see the results and prompted again.
  • If you choose (Add New Product), you will be prompted to eneter all the inputs for the new products then you will see the new product and it's new designated item_id.

mysql updates

In all the tasks that you will do, the database is updated on the fly. Whether buying, adding inventory, or adding new products. Each time the quantity is updated.

bamazon's People

Contributors

walidbillel avatar

Watchers

 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.