-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore (Heroku build): Pushing to Heroku to test production builds
- Production store implemented and can be accessed in production environment - Removed global variable from code base by using browser:true in eslint - Assigned api docs to /api-docs, static page - Production environment defined - webpack.config modified for production environment - Refactored package.json to serve up start scripts - Served the index.html to the app.js - Edited procfile to use dist chore (Heroku build): Fixed heroku build by fixing tests - Reinstalled bcrypt to adhere with new node update. - Refactored tests and seed files - Introduced a file to order test
- Loading branch information
Benny Ogidan
authored and
Benny Ogidan
committed
Oct 27, 2017
1 parent
8bb3bfa
commit ea22347
Showing
24 changed files
with
248 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
JWT_SECRET=sampleJWT | ||
DBUSERNAME=sampledb | ||
DBPASSWORD=password | ||
DB=sampledb | ||
DBADDRESS=SampleIpaddress | ||
DBDIALECT=Sampledialect | ||
TESTDB=sampletestdb | ||
ISBNRANDOM_MIN_ID =test_random_id | ||
ISBNRANDOM_MAX_ID=test_random_id | ||
DATABASE_URL=databaseurl | ||
NODE_ENV=environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,49 @@ | ||
{ | ||
"root": true, | ||
"extends": "airbnb-base", | ||
"env": { | ||
"node": true, | ||
"es6": true, | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"one-var": 0, | ||
"one-var-declaration-per-line": 0, | ||
"new-cap": 0, | ||
"consistent-return": 0, | ||
"no-param-reassign": 0, | ||
"comma-dangle": 0, | ||
"curly": ["error", "multi-line"], | ||
"prefer-destructuring": ["error", {"object": false,"array": false}], | ||
"import/no-unresolved": [2, { "commonjs": true }], | ||
"no-shadow": ["error", { "allow": ["req", "res", "err"] }], | ||
"valid-jsdoc": ["error", { | ||
"requireReturn": true, | ||
"requireReturnType": true, | ||
"requireParamDescription": false, | ||
"requireReturnDescription": true | ||
}], | ||
"require-jsdoc": ["error", { | ||
"require": { | ||
"FunctionDeclaration": true, | ||
"MethodDefinition": true, | ||
"ClassDeclaration": true | ||
} | ||
}] | ||
}, | ||
"settings": { | ||
"import/resolver": "node" | ||
} | ||
"root": true, | ||
"extends": "airbnb-base", | ||
"env": { | ||
"browser": true, | ||
"jquery": true, | ||
"node": true, | ||
"es6": true, | ||
"mocha": true | ||
}, | ||
"globals": { | ||
"describe": true, | ||
"expect": true | ||
}, | ||
"rules": { | ||
"one-var": 0, | ||
"one-var-declaration-per-line": 0, | ||
"new-cap": 0, | ||
"consistent-return": 0, | ||
"no-param-reassign": 0, | ||
"comma-dangle": 0, | ||
"curly": [ "error", "multi-line" ], | ||
"prefer-destructuring": [ "error", { "object": false, "array": false } ], | ||
"import/no-unresolved": [ 2, { "commonjs": true } ], | ||
"no-shadow": [ "error", { "allow": [ "req", "res", "err" ] } ], | ||
"valid-jsdoc": [ | ||
"error", | ||
{ | ||
"requireReturn": true, | ||
"requireReturnType": true, | ||
"requireParamDescription": false, | ||
"requireReturnDescription": true | ||
} | ||
], | ||
"require-jsdoc": [ | ||
"error", | ||
{ | ||
"require": { | ||
"FunctionDeclaration": true, | ||
"MethodDefinition": true, | ||
"ClassDeclaration": true | ||
} | ||
} | ||
] | ||
}, | ||
"settings": { | ||
"import/resolver": "node" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: node ./server/dist/bin/www.js | ||
web: npm run start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import configDev from './configStore.dev'; | ||
import configProd from './configStore.prod'; | ||
|
||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./configStore.prod'); | ||
module.exports = configProd; | ||
} else { | ||
module.exports = require('./configStore.dev'); | ||
module.exports = configDev; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.