Skip to content

Commit

Permalink
Merge pull request #12 from andela/feature/162727462/signup-send-veri…
Browse files Browse the repository at this point in the history
…fy-email

#162727462 signup and send verify link
  • Loading branch information
Bamidele Daniel committed Jan 11, 2019
2 parents aa7d48b + e6349de commit b4f7ae7
Show file tree
Hide file tree
Showing 23 changed files with 1,085 additions and 145 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"presets": ["@babel/preset-env"],
"plugins": ["@babel/plugin-proposal-class-properties"]
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-transform-regenerator"]

}
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ EMAILHOST=smtp.elasticemail.com
EMAILPORT=2525
EMAILUSER=email@andela.com
EMAILPASS=pass
DB_NAME=DB_DATABASE_NAME
DB_NAME_TEST=TEST_DB
DB_USER=DB_USERNAME
DB_PASSWORD=DB_PASSWORD
9 changes: 9 additions & 0 deletions .sequelizerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const path = require('path');

module.exports = {
"config": path.resolve('./src/db/config', 'config.js'),
"models-path": path.resolve('./src/db/models'),
"seeders-path": path.resolve('./src/db/seeders'),
"migrations-path": path.resolve('./src/db/migrations')
};

20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
language: node_js
node_js:
- "stable"
cache:
directories:
- "node_modules"
script:
- npm test
after_script:
- npm run coverage
install: npm install
services:
- postgresql
env:
- DB_USERNAME=chidinmaezekwe DB_PASSWORD=null DBNAME=art_cave_test
before_script:
- psql -c 'drop database if exists art_cave_test;' -U postgres
- psql -c 'create database art_cave_test;' -U postgres
- psql -c "CREATE USER chidinmaezekwe WITH PASSWORD 'null';" -U postgres
- npm run db:migrate

script: npm test
after_success: npm run coverage
Loading

0 comments on commit b4f7ae7

Please sign in to comment.