Node application
Bamazon.js is a node app that is similar to what we all know as Amazon, allowing a user to come in and shop from a list of products from a table in a local database.
Github - files/repository
Visual Studio Code(VSC) - code/file editor
Node.js
NPM Packages
- MySql
- Inquirer
- Prompt
MySql Workbench - to create a database consisting of a table:
item_idproduct_namedepartment_nameprice
Creating a connection with the root localhost allows the user to access this table in the bamazon.js file, using Node in the terminal.
Prompts
-
Please enter item ID of the item you are looking for:
- Listed items 1-10 that can be chosen. -
Enter the amount of items you would like to purchase:
- Allows user to order the quantity they desire. -
Thank you for your purchase! Your final total is: $
- Tells the user what item they have chosen. - Updates the database with remaining items in stock. - Informs user stock is updated.
Kaiden Munsey
Github Profile