Coder Social home page Coder Social logo

bamazon's Introduction

Bamazon Node.js Application

The purpose of this application is to allow a customer to purchase a product and allow a manager to update and create inventory listings.

Challenges

The biggest challenge that I had with this project was getting the validate for the user input to work properly. The documentation for inquirer is a little sparse when it gets into specifics. Eventually, using other resources, I was able to figure out how to get the validate to function properly.

I was unable to to get the customer's total to round to the proper decimal. That is something that I think I will be able to get working in the future.

Customer Interface

When the customer file is initiated it will give them a list of avaliable products products from the database and then asks them what they would like to buy.

customer start database start

After the user selects a product and the number they would like to buy of the product, the program will give a total for the purchase. The database will update to reflect the new inventory of a product.

purchase database post purchase

If the user tries to buy more than of a product that there is stock of, it will tell the user that there isn't enough and to restart their purchase.

over purchase

Manager Interface

When the manager file is initiated, a list of avaliable actions will be given. manager start

View Inventory

If View inventory is chosen, a list of everything in the database will be pulled up.

view Products database manager start

View Low Inventory

If View low inventory is chosen, a list of every product with less than 5 units in stock will be listed.

low inventory

Add Inventory

If Add inventory is chosen, the manager is asked for the id of the product and the number they would like to add. After the information is given the database is updated.

add inventory database add inventory

Add New Product

If Add new Prodect is chosen, the manager will be asked to enter the name of the product, the dapartment it is in, the price per unit, and the number they want to add. The database is updated accordingly.

create new product database new product

bamazon's People

Contributors

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