This app is a mock online store.
1st Question
- Would you like to purchase fish?
2nd Question
- Type in the id# of the fish you would like to purchase.
3rd Question
- How many fish would you like to buy?
Start App by typing node bamazonCustomer.js
in your Command Prompt or Terminal.
You will have to provide your own server info as follows:
var connection = mysql.createConnection({
host : "yourHost",
user : "yourUser",
password : process.env.dbPassword,
database : "bamazon"
});
process.env.dbPassword
is used to hide the password.
DotEnv is used to get the password from a .env file written as follows:
Data Base Password
dbPassword=yourPassword