Coder Social home page Coder Social logo

bamazon's Introduction

bamazon marketplace

This is a command line application that replicates an Amazon-like storefront for the user.

The products and their respective prices, quantities, IDs, and department locations are all stored in a MySQL database.

There are two diferent levels, or iterations of this storefront/marketplace:

  • Customer view

  • Manager view

The Customer view allows users to view and purchase available products from the databse.

The Manager view allows an admin to view and update the products in the database (stock quantity etc.).

Technologies used:

  • node.js

  • MySQL

  • npm packages: inquirer, mysql, cli-table (prettify)

Application overview:

bamazonCustomer.js

The user is prompted with a cli-table of the available products and their prices, quantities, and department names.

customer image 1

They are asked to enter a valid product ID and a desired quantity.

customer image 2

The order is placed and they are shown a receipt of their purchase.

customer image 3

The stock quantity of the chosen product is updated in the database.

customer image 4

The user is then prompted if they would like another sale. If yes, the products table is displayed again. If no, they exit the application.

customer image 5

bamazonManager.js

The admin/user is prompted with a menu of choices.

manager image 1

"View products for sale" displays the table of all products in the database, despite their availability.

manager image 2

"Inspect low inventory" displays a table of all products with a stock quantity value lower than 5.

manager image 3

"Add to inventory" displays a list of all products.

manager image 4

After selecting a product, the admin/user is prompted for a quantity to add (a valid number).

manager image 5

The selected product's stock quantity is updated in the database.

manager image 6

"Add new product" prompts the admin/user for all product details.

manager image 7

The new product is then added to the database.

manager image 8

"Exit" logs the admin/user out of (exits) the application.

manager image 9

bamazon's People

Contributors

nikolas-haug 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.