Skip to content
A Node storefront app.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Images
node_modules
.DS_Store
README.md
bamazonCustomer.js
bamazonProducts.sql
package-lock.json

README.md

Bamazon

A Node/JavaScript-based storefront application.

Getting Started

Using Node in your terminal/Bash, run your bamazonCustomer.js file. Follow the instructions to purchase items from the Bamazon store.

Prerequisites

Node, MySQL, Inquirer

Installing

Download the repository. Run 'npm install' in your repository folder to install all dependencies from the package-lock.json file.

Use

Bamazon Transactions

First, cd into the repository in your terminal. Next, run the command 'node bamazonCustomer.js'. This will prompt the MySQL connection and display the storefront to you with currenty inventory as such:

Connection/Display

Next, respond to the question of what you would like to purchase by answering by item name, and how many you would like to purchase by entering the number, or else enter 'Q' to quit:

Purchase

Finally, as seen here, if you attempt to purchase more items than in inventory, or an item not in inventory, you will be denied and told this is not a valid selection. Additionally, as seen in these screenshots, the MySQL database updates in real-time.

Denial

Built With

  • Node - The JavaScript runtime used
  • MySQL - Used to create realtime database for storefront inventory.
  • Inquirer - Used to ask questions, parse input, and validate answers.

Authors

You can’t perform that action at this time.