Coder Social home page Coder Social logo

bamazon's Introduction

Bamazon

Created during Week 6 of UC Berkeley Coding Bootcamp. The goal was to create an Amazon-like store front using Node.js and MySQL.

Getting Started

  • Clone repo.
  • Run command in Terminal or Gitbash 'npm install'
  • Run command depending which mode you would like to be on:
    • Customer - 'node bamazon.js'
    • Manager - 'node managerbamazon.js'
  • Run 'ctrl + c' to exit each mode

What Each JavaScript Does

  1. bamazon.js

    • Prints the products in the store.

    • Prompts customer which product they would like to purchase by ID number.

    • Asks for the quantity.

      • If there is a sufficient amount of the product in stock, it will return the total for that purchase.
      • However, if there is not enough of the product in stock, it will tell the user that there isn't enough of the product.
      • If the purchase goes through, it updates the stock quantity to reflect the purchase.
      • It will also update the product sales in the department table.

  1. managerbamazon.js

    • Starts with a menu:

      • View Products for Sale
      • View Low Inventory
      • Add to Inventory
      • Add New Product
      • Quit
    • If the manager selects View Products for Sale, it lists all of the products in the store including all of their details.

    • If the manager selects View Low Inventory, it'll list all the products with less than five items in its StockQuantity column.

    • If the manager selects Add to Inventory, it allows the manager to select a product and add inventory.

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

    • If the manager selects End Session, it ends the session and doesn't go back to the menu.


Demo Videos

  • bamazon.js

  • managerbamazon.js

Technologies used

Built With

  • Visual Studio code - Text Editor
  • MySQLWorkbench
  • Terminal/Gitbash

Authors

bamazon's People

Contributors

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