DanLaZ / bamazon_CLIapp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bamazon - Command Line Node App

Overview

This app is a mock online store.

Inquier Prompts

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?

App Demo



How to Use

Start App by typing node bamazonCustomer.js in your Command Prompt or Terminal.

NPMs Used

What You Need To Run The App

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

About


Languages

Language:JavaScript 76.6%Language:TSQL 23.4%