Skip to content

Commit

Permalink
Merge pull request #27 from andela/ft-social-login-165412915
Browse files Browse the repository at this point in the history
#165412915 enable social login/signup
  • Loading branch information
e-liyai committed May 8, 2019
2 parents 8150687 + ffd5756 commit 87c7f8b
Show file tree
Hide file tree
Showing 74 changed files with 1,312 additions and 417 deletions.
3 changes: 1 addition & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ exclude_patterns:
- "src/config/"
- "src/models/"
- "src/migrations/"
- "src/dist/"
- "features/"
- "src/helpers/factory"
- "**/node_modules/"
- "script/"
- "**/spec/"
Expand Down
8 changes: 8 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ DB_HOST_TEST=localhost
DB_USER_TEST=postgres
DB_PASSWORD_TEST=12345
DB_PORT_TEST=5432

APP_URL=http://localhost:3000
FACEBOOK_APP_ID=FacebookId
FACEBOOK_APP_SECRET=FacebookSecret
TWITTER_CONSUMER_KEY=TwitterKey
TWITTER_CONSUMER_SECRET=TwitterKey
GOOGLE_CONSUMER_KEY=ToogleKey
GOOGLE_CONSUMER_SECRET=GoogleSecret
15 changes: 7 additions & 8 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"reporter": [
"lcov",
"text"
],
"exclude": [
"src/migartions",
"src/helpers"
]
"reporter": [
"lcov",
"text"
],
"exclude": [
"src/tests"
]
}
2 changes: 1 addition & 1 deletion .sequelizerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require("@babel/register");
const path = require('path');

module.exports = {
"config": path.resolve('./src/config', 'db-config.js'),
"config": path.resolve('./src/config', 'dbConfig.js'),
"models-path": path.resolve('./src/models'),
"migrations-path": path.resolve('./src/migrations')
};
18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
env:
global:
- CC_TEST_REPORTER_ID=d570e2625aaffa20e7828eaddfbec748c525e866b6d413472bc26e188cb2bc6a
- SECRET_KEY=12345
- NODE_ENV=test
- CC_TEST_REPORTER_ID=d570e2625aaffa20e7828eaddfbec748c525e866b6d413472bc26e188cb2bc6a
- DATABASE_URL_TEST=postgres://postgres@localhost:5432/authorhavens_test
- APP_URL=http://localhost:3000
- FACEBOOK_APP_ID=FacebookId
- FACEBOOK_APP_SECRET=FacebookSecret
- TWITTER_CONSUMER_KEY=TwitterKey
- TWITTER_CONSUMER_SECRET=TwitterKey
- GOOGLE_CONSUMER_KEY=ToogleKey
- GOOGLE_CONSUMER_SECRET=GoogleSecret
language: node_js
node_js:
- "stable"
cache:
directories:
- "node_modules"
- "node_modules"
services:
- postgresql
before_script:
- psql -c 'CREATE DATABASE authorhavens_test;' -U postgres
- npm i sequelize-cli -g
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
Expand Down
3 changes: 2 additions & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"watch": ["src/"]
"watch": ["src/"],
"ignore": ["src/tests/"]
}
4 changes: 0 additions & 4 deletions old_structure/config/index.js

This file was deleted.

26 changes: 0 additions & 26 deletions old_structure/config/passport.js

This file was deleted.

93 changes: 0 additions & 93 deletions old_structure/index.js

This file was deleted.

57 changes: 0 additions & 57 deletions old_structure/models/User.js

This file was deleted.

18 changes: 0 additions & 18 deletions old_structure/routes/api/index.js

This file was deleted.

87 changes: 0 additions & 87 deletions old_structure/routes/api/users.js

This file was deleted.

5 changes: 0 additions & 5 deletions old_structure/routes/index.js

This file was deleted.

Loading

0 comments on commit 87c7f8b

Please sign in to comment.