Skip to content

mattwills09/Bamazon-SQL-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

'Bamazon' Node JS Based Terminal Online Store Application


The primary purpose for this entirely Node terminal ran application was to create an online storefront type application, that is loosely based off of the conglomerate, Amazon, that would be able to be ran entirely from the terminal using Node JS, and linked to a MySQL database using MySQL Workbench through JavaScript. When the user starts the application they are able to see the current inventory of the products in the database, and then can place an order for a specific item. From there, the stock quantity of the item will be deducted from the database, and if no more items are available, the user will be notified of that. Screenshots of the SQL database is found below:


SQL Products Database


Screenshots for the JavaScript code and NodeJS terminal store are found below as well, and after past completed activities, this was the easier part of the application. The majority of bugs encountered were found when making sure that the correct callback functions were stored inside the correct parent functions so that every function would run smoothly. I had conferred with two colleagues briefly and was able to get everything in order.


1-bamazonCustomer-showItems


1-bamazonCustomer-showItems(2)


1-bamazonCustomer-showItems(3)


1-bamazonCustomer-showItems(4)


1-bamazonCustomer-showItems(5)


That was the first part of the project, with an optional bonus level options to be added after. The additions were another JavaScript file for a 'Manager-Mode' of the terminal store, and the manager would have the ability to view all the products for sale, see products with a low inventory (under 5) with a simple search, add to any product inventory (stock quantity), and also, add new products to the database. Creating the 'view products for sale' and 'view low inventory' options was able to be done without too many issues, and going back to the bamazonCustomer.js code, as well as past activities such as the GreatBay and topSongs definitely helped out as well. I was able to also get the 'add to inventory' part of the project working, however, I will still need to figure out why the stock inventory was not being added to the stock in the database. For the last function, the 'add new product' function is working properly, where the Manager is able to add a new product, along with its price, department, and number of the product in the inventory to the original SQL database. Lastly, the only bugs that were still lingerling was with the 'add to inventory' function as I mentioned before, but I'm sure with a little more fine tuning it will be up and running (however I am running out of time here). Screenshots are found below, and more time will be put into the remaining function to get it working.


bamazonManager-InitialRun


bamazonManager-InitialRun2


bamazonManager-viewProducts


bamazonManager-viewLowInventory


bamazonManager-addInventory-1


bamazonManager-addInventory-2


2-bamazonManager-addProducts(1)


2-bamazonManager-addProducts(2)


Lastly, two new variables were created that were trying to add the input of the new inventory to the database of the product name, however, both of those variables did not update the new total in the database. This project needed to be submitted, and in the future I will go back to finish all aspects of the project. Screenshots of the update is below:


bamazonManager-addInventory-reTry(1)


Built With

  • [Node JS]
  • [MySQL]
  • [JavaScript]

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published