Git Product home page Git Product logo

zamazon's Introduction

Zamazon

Node.js & MySQL Homework Assignment

The purpose of this homework assignment is to practice working with Node.js and MySQL. This is a very simple command-line interface for interacting with the database using Node in an amazon-like way.

The program welcomes the user and asks whether they wish to order and item or exit the program. If they choose to place an order a list of items (which was pre-created using the zamazon.sql file). Each item has a stock quantity and price.

After the user enters the id of the item they want and the quantity they wish to order, the program verifies that there is sufficient stock to fill the order. If there is, the order is processed after displaying the price and updating the stock on hand. If there is not sufficient stock, the order is cancelled and the user is prompted to try again.

Technologies Used

  • Node.js
  • MySQL
  • Inquirer
  • console.table
  • Chalk
  • Javascript

Enhancements Planned

  • After order is completed, ask user if they wish to make another purchase.
  • Combine multiple purchases into one order.
  • Add a "Manager" module that will allow:
    • View Products for Sale
    • View Low Inventory
    • Add to Inventory
    • Add New Product
  • Add a "Supervisor module that will allow:
    • View Product Sales by Department
    • Create New Department

View Video of Program

zamazon's People

Contributors

rmwalls avatar dependabot[bot] 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.