Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
22 changes: 22 additions & 0 deletions .vscode/sftp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name" : "express-kt-api",
"protocol": "sftp",
"host": "ftp.55186620-46-20190503114132.webstarterz.com",
"username": "cp277207",
"password": "1~PReX~e9[@T",
"remotePath": "/home2/cp277207/public_html/bank/express-ecom/",
"downloadOnOpen": true,
"uploadOnSave": true,
"watcher": {
"files": "css/*{min.css,css,map,css.map}",
"autoUpload": true,
"autoDelete": true
},
"ignore": [
".vscode",
"node_modules",
".git",
".DS_Store",
"vendor"
]
}
2 changes: 1 addition & 1 deletion bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var http = require('http');
* Get port from environment and store in Express.
*/

var port = normalizePort(process.env.PORT || '3000');
var port = normalizePort(process.env.PORT || '8080');
app.set('port', port);

/**
Expand Down
25 changes: 11 additions & 14 deletions config/config.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
{
"developmsent": {
"username": "root",
"password": "root",
"database": "node_api_ecom_sequelize",
"host": "127.0.0.1",
"dialect": "mysql"
},
"development": {
"storage": "./app.db",
"dialect": "sqlite"
"username": "cp277207",
"password": "1~PReX~e9[@T",
"database": "cp277207_bank",
"host": "127.0.0.1",
"dialect": "mysql",
"logging": true
},
"test": {
"username": "root",
"password": "root",
"database": "node_ecom_sequelize",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
"dialect": "sqlite3"
"dialect": "mysql"
},
"production": {
"username": "root",
"password": "root",
"database": "node_ecom_sequelize",
"password": null,
"database": "database_production",
"host": "127.0.0.1",
"dialect": "mysql"
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "nodemon ./bin/www"
},
"dependencies": {
"bcrypt": "^3.0.2",
"bcrypt": "^5.0.0",
"cookie-parser": "~1.4.3",
"cors": "^2.8.5",
"debug": "~2.6.9",
Expand Down