Slamazon is a fictional store-front created using Node.js and SQL and run in your very own command line.
When you run slamazonCustomer.js
, you'll see a table with all of Slamazon's great deals. Simply select the product you wish to purchase, and input the desired quantity. If the item is in stock, Slamazon will display the total purchase price.
- Ensure that you have MySQL installed on your computer, along with your favorite MySQL client, such as MySQL Workbench or Sequel Pro.
- Download or
git clone
this repo. - Run the code found in
slamazon.sql
in your MySQL client to populate the database. - Enter your MySQL password in the
slamazonCustomer.js
as indicated here:
Navigate to the slamazon
folder in your Terminal or GitBash window and run the following:
npm i
node slamazonCustomer.js