Coder Social home page Coder Social logo

bamazon's Introduction

Bamazon CLI

Mock amazon cli app with customer, manager, and supervisor views. Demo video here: https://drive.google.com/file/d/1EmF63hNuq58DWexFyYbRfuC_y3awcoj4/view

Installation

The app requires that you have the following installed:

  • mysql server
  • node.js
  • npm

In order to run the app you must clone this repository, download the npm dependencies. You must also edit lines 12 and 13 of the sqlHelper.js file to contain your own mysql server login information and run $ mysql < init.sql terminal command in the bamazon project directory.

Instructions

The app is run by using the command $ node index.js in the bamazon directory.

In the customer view, the cli wil guide you through the process of adding items to your cart, and then checking them out from your cart once you are finished. tThe manager view functions a similar way, except it gives you the option to add stock to inventory items in the database, and to add entirely new projects to the database. The supervisor view will retrieve information from the database regarding product sales and department overhead. The supervisor view will also allow you to add entirely new departments to the database.

All views pull and update data from the same mysql server database, and changes made in any of the programs will be reflected in the others.

Dependencies

npm packages:

  • mysql
  • inquirer
  • colors
  • console.table

bamazon's People

Contributors

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