Coder Social home page Coder Social logo

bamazon's Introduction

bamazon

A node application to replicate a customer order and inventory process with SQL

Completed 3 node modules:

  • BAMAZONCUSTOMER.JS
  • BAMAZONMANAGER.JS
  • BAMAZONSUPERVISOR.JS

The modules are developed in a logical and progressive manner to introduce a user to our node application.

It starts with a simple interface which shows the current table of products for sale and prompts the user for a purchase. Afterwards it shows the total spent; after a short delay, the same table with the change in stock quantity reflected.

The following module has more choices: the basic two show the current stock and the low-quantity items, which we can replenish with the third choice. We can also add a new product by digiting a name and a price.

The last module includes a view of the departments, with data relative to sales and profits. We can also create a new department. This involved creating a new MySQL table and constructing a more elaborate query to interact with both tables to interpolate new values.

Technology used:

  • Cli-table npm module

  • Created package.json for easy download and use

  • Used a separate 'keys' module for privacy, to be sent directly to recipient before use

  • Except for bamazoncustomer.js, introduced the query selections and their arguments separately for ease of maintenance and future development

  • Grouped tasks in reusable functions

  • Video demo at https://www.youtube.com/watch?v=HwBG5vUa4W0&feature=youtu.be

FUTURE IMPROVEMENTS:

  • It should be possible to further consolidate the code
  • Parts common to all modules can be taken out and put into their own module to avoid repetition
  • A main module can be developed to group all 3 modules into one easy to use program by using inquirer to select one of 3 users at the beginning

bamazon's People

Contributors

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