Using Node in your terminal/Bash, run your bamazonCustomer.js file. Follow the instructions to purchase items from the Bamazon store.
Node, MySQL, Inquirer
Download the repository. Run 'npm install' in your repository folder to install all dependencies from the package-lock.json file.
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:
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:
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.
- MySQL - Used to create realtime database for storefront inventory.
- Inquirer - Used to ask questions, parse input, and validate answers.
- Jonathan Davis - Completion - (https://github.com/JonathanDavis22)