Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch1 #94

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# FullstackReactCode

Companion repo to a course on Udemy.com. See here: https://www.udemy.com/node-with-react-fullstack-web-development

Companion repo to a course on Udemy.com. See here: https://www.udemy.com/node-with-react-fullstack-web-development.
10 changes: 9 additions & 1 deletion server/config/keys.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
// module.exports = {
// googleClientID: '548271082756-krvo7o9n25mpfd71e3k2g7rahlk7olo4.apps.googleusercontent.com',
// googleClientSecret: 'LNtorf92cZqqVtxAniyo2PLT',
// mongoURI: 'mongodb+srv://ffjabbari:[email protected]/myFirstDatabase?retryWrites=true&w=majority',
// cookieKey: 'fredman'
// };
process.env.NODE_ENV = 'dev';
console.log('===>ENV:::', process.env.NODE_ENV);
// keys.js - figure out what set of credentials to return
if (process.env.NODE_ENV === 'production') {
// we are in production - return the prod set of keys
module.exports = require('./prod');
} else {
// we are in development - return the dev keys!!!
module.exports = require('./dev');
}
}
24 changes: 24 additions & 0 deletions server/node_modules/accepts/HISTORY.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 22 additions & 15 deletions server/node_modules/accepts/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 18 additions & 11 deletions server/node_modules/accepts/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 26 additions & 17 deletions server/node_modules/accepts/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/node_modules/array-flatten/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions server/node_modules/content-disposition/HISTORY.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/node_modules/content-disposition/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 15 additions & 8 deletions server/node_modules/content-disposition/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading