Skip to content

FyperTheViper/Bamazon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bamazon

Welcome to Bamazon! An online retailer totally not associated with any large conglomerates!

This is a project which utilizes Node.js, MySQL and heavy use of Inquirer for user interaction. A user may purchase items from a list which is stored on a MySql database. The user will either be informed if the item is in stock (quantity > 0) and complete the transaction, or be met with a message explaining that item is out of stock. After the user comes back to the store, the quantity amounts will be remembered. Let us begin!

Running node and the JS file will show this simple inquirer prompt.

Saying yes will show the contents of the store as displayed on the MySQL database, and displayed with the CLI table package.

After some prompts asking what product ID the user would like and how many, we are brought to the check out screen which lists the product, department, price, quantity and total. This is done through a MySql query.

A complete transaction and another satisfied customer. The user is then brought back to the original prompt. Here we see the quantity from the previous transaction is remembered, and Soylent Green has 10 less in stock.

What if we cleaned out the store of a certain product? Here we buy out a product (my favorite) with a lower quantity for the low, low price of 2599.98.

After completing the transaction, we see trying to purchase it again will yield a message saying they are all out. A Shame.

==============

The screenshots below show what happens when the boolean prompts for each section is "no".

I hope you enjoyed BAMAZON! Look at this github for future projects!

About

App which utilizes Node and MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published