Skip to content

Commit

Permalink
update: dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardreyes29 committed Sep 3, 2020
1 parent 79cfa91 commit 71665d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
package-lock.json
node_modules
.env
3 changes: 2 additions & 1 deletion config/connection.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Set up MySQL connection.
var mysql = require("mysql");
require('dotenv').config();

var connection = mysql.createConnection({
host: "localhost",
port: 3306,
user: "root",
password: "OnePunch123",
password: process.env.DB_PASS,
database: "employee_tracker_db"
});

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"homepage": "https://github.com/edwardreyes29/EmployeeTracker#readme",
"dependencies": {
"console.table": "^0.10.0",
"dotenv": "^8.2.0",
"inquirer": "^7.3.3",
"mysql": "^2.18.1",
"mysql2": "^2.1.0"
Expand Down

0 comments on commit 71665d3

Please sign in to comment.