Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
6916fce
update readme.md and package.json
adesege Aug 11, 2017
0ca351f
update readme.md
adesege Aug 11, 2017
de9d363
add coveralls badge (#19)
adesege Aug 11, 2017
8126258
Implement bfa feedback (#20)
adesege Aug 11, 2017
55433be
Implement bfa feedback (#21)
adesege Aug 11, 2017
6f17ae0
Implement bfa feedback (#24)
adesege Aug 11, 2017
cbf5abd
Implement bfa feedback (#26)
adesege Aug 11, 2017
8e89c6f
Implement bfa feedback (#28)
adesege Aug 11, 2017
3753cb6
update package.json
adesege Aug 10, 2017
6178ed9
update travis.yml
adesege Aug 10, 2017
e89deaf
update config.json
adesege Aug 10, 2017
0ecf100
update controllers
adesege Aug 11, 2017
15823c0
update controllers
adesege Aug 11, 2017
bb56a4f
update controllers
adesege Aug 11, 2017
5a57def
update controllers and middlewares
adesege Aug 11, 2017
c76dd94
Merge branch 'deploy-heroku' into test-deploy
adesege Aug 11, 2017
f7498c5
update package.json
adesege Aug 11, 2017
dc8e3eb
Update package.json
adesege Aug 11, 2017
c3a0dc7
update controllers
adesege Aug 11, 2017
6e852a7
update package.json
adesege Aug 11, 2017
62ea3cd
update package.json. update config.json. update sequelizerc
adesege Aug 11, 2017
36e5d25
update server.js. update config.json.
adesege Aug 11, 2017
8734f4d
update config.json
adesege Aug 11, 2017
dd2b8a7
change user signup error to an array
adesege Aug 15, 2017
6924c1b
remove unnecessary error message in signup method
adesege Aug 15, 2017
b6c5e2e
remove satus and code keys from response object
adesege Aug 15, 2017
89f668f
remove status and code from signin method
adesege Aug 15, 2017
b7a761b
add validation for empty email or password field in signin method
adesege Aug 15, 2017
2ad6267
change class names and filenames to PascalCase
adesege Aug 15, 2017
34485c0
change heading style
adesege Aug 15, 2017
cb97cc2
add .idea/
adesege Aug 15, 2017
b3be8f9
remove import utils
adesege Aug 15, 2017
a3a4943
rename filename to lowercase
adesege Aug 15, 2017
45be0bb
remove book.js
adesege Aug 15, 2017
4838824
remove status message assertion
adesege Aug 15, 2017
b02e866
disable email notifications
adesege Aug 15, 2017
917c18d
update file
adesege Aug 15, 2017
1344ce8
add coveralls badge (#19)
adesege Aug 11, 2017
0bbd9e4
Implement bfa feedback (#20)
adesege Aug 11, 2017
697eeef
pull rebase with remote branch
adesege Aug 15, 2017
23ad3f7
update file
adesege Aug 15, 2017
f3f8ccd
Implement bfa feedback (#26)
adesege Aug 11, 2017
1f6e82a
Implement bfa feedback (#28)
adesege Aug 11, 2017
d8c7e52
rebase with remote branch
adesege Aug 15, 2017
59f343a
update file
adesege Aug 15, 2017
6eee030
update package.json
adesege Aug 11, 2017
f29b238
resolve merge conflicts
adesege Aug 15, 2017
f3839b6
update package.json
adesege Aug 11, 2017
67ef910
resolve merge conflicts
adesege Aug 15, 2017
1626068
add .idea/
adesege Aug 15, 2017
25d12e2
remove status message assertion
adesege Aug 15, 2017
8f55261
resolve merge conflicts
adesege Aug 15, 2017
f22c075
delete this file
adesege Aug 15, 2017
583f146
delete this file
adesege Aug 15, 2017
f15a92d
update file
adesege Aug 15, 2017
d913ff1
resolve merge conflict with implement-lf-feedback
adesege Aug 15, 2017
5749ef6
update file
adesege Aug 15, 2017
d301ede
update file
adesege Aug 15, 2017
0f93520
Merge branch 'test-deploy' into implement-lf-feedback
adesege Aug 15, 2017
02ae939
Merge pull request #31 from adesege/implement-lf-feedback
adesege Aug 15, 2017
1de0e1e
Merge branch 'test-deploy' of https://github.com/adesege/HelloBooks i…
adesege Aug 15, 2017
6364883
change codeclimate and travis branch name
adesege Aug 15, 2017
ea05e8b
add branch to codeclimate badge
adesege Aug 15, 2017
5a680cc
remove branch from codeclimate badge
adesege Aug 15, 2017
404286f
Merge branch 'development' into test-deploy
adesege Aug 15, 2017
d62c067
Merge pull request #32 from adesege/test-deploy
adesege Aug 15, 2017
656f080
change branch to development in coveralls and travis badge
adesege Aug 15, 2017
b8a27df
Merge branch 'master' into development
adesege Aug 16, 2017
6018554
update .travis.yml
adesege Aug 16, 2017
e98060d
Merge branch 'development' into implement-lf-feedback
adesege Aug 16, 2017
993bf60
update readme.md
adesege Aug 16, 2017
b8c4f45
update .travis.yml
adesege Aug 16, 2017
332d246
add curly bracket at line 109
adesege Aug 16, 2017
ec72794
remove dist folder
adesege Aug 16, 2017
bc1e0ed
add run build script
adesege Aug 16, 2017
cbe104b
add heroku-prebuild script
adesege Aug 16, 2017
f55dcf3
remove watch option in build script
adesege Aug 16, 2017
8691b84
add config.json to dist folder
adesege Aug 16, 2017
ddb7e2d
change heroku-prebuild script to heroku-postbuild script
adesege Aug 16, 2017
77e3774
add dotenv. update package.json. update travis.yml
adesege Aug 10, 2017
a79ba6f
update travis.yml
adesege Aug 10, 2017
6643fad
update app.js
adesege Aug 10, 2017
2bf768e
update controllers
adesege Aug 11, 2017
905ad4b
update file
adesege Aug 15, 2017
c20371d
change codeclimate and travis branch name
adesege Aug 15, 2017
4b990b9
add branch to codeclimate badge
adesege Aug 15, 2017
7c825a4
remove branch from codeclimate badge
adesege Aug 15, 2017
f1b90b8
change coveralls and travis branch to master
adesege Aug 16, 2017
e4fafc9
change port to 8090
adesege Aug 16, 2017
410e8dc
ignore scripts in template folder
adesege Aug 16, 2017
bbfe0d6
remove dist folder except config from git
adesege Aug 16, 2017
365b4eb
add closing curly bracket at line 109
adesege Aug 16, 2017
d368d76
resolve merge conflict
adesege Aug 16, 2017
7b88269
resolve merge conflict
adesege Aug 16, 2017
cc50731
update travis.yml file
adesege Aug 16, 2017
0efb449
update travis.yml file
adesege Aug 16, 2017
bf29826
add scripts in template folder to exclude path
adesege Aug 16, 2017
3ac91d2
initial commit
adesege Aug 16, 2017
d46e2eb
add scripts in template folder to exclude path
adesege Aug 16, 2017
6cc5023
initial commit
adesege Aug 16, 2017
363a60b
add bookcategory controller
adesege Aug 19, 2017
97ef033
add constraint in BookClass.create() method
adesege Aug 19, 2017
a337de2
add bookcategory controller
adesege Aug 19, 2017
c17bc1f
create bookCategory migration file
adesege Aug 19, 2017
07a71dd
create bookCategory model
adesege Aug 19, 2017
0f9110d
define bookCategory route
adesege Aug 19, 2017
cf0436c
update update() in book category controller
adesege Aug 19, 2017
8c532ea
update create() in book controller
adesege Aug 19, 2017
39c01c1
update put() in books categories route
adesege Aug 19, 2017
448cfea
add test for books categories
adesege Aug 19, 2017
a5211fd
remove dist files
adesege Aug 19, 2017
520aa34
add config.json
adesege Aug 19, 2017
5e9a34e
update package.json
adesege Aug 19, 2017
5365e4c
Add book category (#42)
adesege Aug 19, 2017
832cc57
Merge branch 'add-book-category' into development
adesege Aug 19, 2017
76d236b
update start script in package.json
adesege Aug 19, 2017
0024b90
Merge branch 'development' of https://github.com/adesege/HelloBooks i…
adesege Aug 19, 2017
8d8e220
update package.json
adesege Aug 19, 2017
a4ae448
add heroku-postbuild script
adesege Aug 19, 2017
50e4514
update build script
adesege Aug 19, 2017
9e92397
update package.json
adesege Aug 19, 2017
822bcef
add api versioning
adesege Aug 20, 2017
07ee442
add version number to paths
adesege Aug 20, 2017
fa7e359
change quotes to template literal
adesege Aug 20, 2017
57180ba
Api versioning (#43)
adesege Aug 20, 2017
954866e
setup react
adesege Aug 22, 2017
c2a89d8
use express as server for react app
adesege Aug 22, 2017
7c36ce1
add coveralls reporting
adesege Aug 22, 2017
71b3bf1
update heroku-postbuild script in package.json
adesege Aug 22, 2017
ad7f9a8
remove ruby script in travis.yml file
adesege Aug 22, 2017
26b23e2
change version number of jquery and popperjs in package.json
adesege Aug 22, 2017
e561d51
add run build for client app to heroku-postbuild
adesege Aug 22, 2017
5984e57
remove SET in start script
adesege Aug 22, 2017
c177034
chnage bootstrap version number
adesege Aug 22, 2017
83d7caf
write components for all template pages
adesege Aug 24, 2017
ae374c6
resolve deployment error on Heroku
adesege Aug 24, 2017
0a81808
integrate signup api with client
adesege Aug 29, 2017
405f8e0
delete flashMessage when component will unmount
adesege Aug 29, 2017
24c5cd7
add confirmPassword in user and admin object in test file
adesege Aug 29, 2017
f87563a
resolve merge conflict
adesege Aug 29, 2017
b567034
React signup api (#47)
adesege Aug 29, 2017
d940167
resolve merge conflict
adesege Aug 29, 2017
32bc1ec
integrate signin api with react
adesege Aug 30, 2017
1bfe88a
resolve merge conflict
adesege Aug 30, 2017
5ccf7ab
resolve merge conflict
adesege Aug 30, 2017
6d52c62
update hound file
adesege Aug 30, 2017
8c80c2c
remove 404 middleware from routes
adesege Aug 30, 2017
b78db50
Merge branch 'react-sigin-api' into development
adesege Aug 30, 2017
619b19c
add material ui
adesege Aug 31, 2017
75b65d1
display error message in signup component
adesege Aug 31, 2017
d45880f
vertically align input icon
adesege Aug 31, 2017
ad44c0c
[UNCOMPLETED] integrate books api with react
adesege Sep 6, 2017
d1930c1
fetch from remote branch
Sep 6, 2017
d0fee86
[UNCOMPLETED] react add books api.
Sep 10, 2017
f1b9247
add DS_STORE to gitignore
Sep 10, 2017
4d14c75
resolve merge conflict
Sep 10, 2017
8e2eecc
resolve merge conflict
Sep 10, 2017
105e982
fix travis before_script block
Sep 10, 2017
85be3d8
add build script to travis before_script block
Sep 10, 2017
60388dd
update travis file
Sep 10, 2017
9748e0a
add $CODECLIMATE_REPO_TOKEN environment variable
Sep 10, 2017
c88a40d
update repo_token
Sep 10, 2017
6876a02
update travis file
Sep 10, 2017
2725d1d
update travis file
Sep 10, 2017
457c1b7
fix book controller based on houndci review.
Sep 10, 2017
6d30214
ignore all assests files in .eslintignore
Sep 10, 2017
d7c110f
React add books api (#50)
adesege Sep 10, 2017
973122d
add css and client/node_modules to eslintignore list
Sep 11, 2017
a034dbc
add coveralls to coverage script
Sep 11, 2017
8ec688d
revert package.json to a previous working state
Sep 11, 2017
3ba1ae9
add get, edit and delete books api with client
Sep 14, 2017
c5a8963
fix travis error
Sep 14, 2017
d3fd654
change test database parameters
Sep 14, 2017
26e11e1
resolve merge conflict
Sep 14, 2017
2c962cc
use isEmpty instead of Object.keys()
Sep 14, 2017
42881ed
resolve travis build fail
Sep 14, 2017
c9002d3
remove package-lock.json
Sep 14, 2017
50ece24
React add books api (#51)
adesege Sep 14, 2017
5eb1519
React add books api (#52)
adesege Sep 14, 2017
ce9bb9d
remove ** from exclude paths
Sep 14, 2017
8615635
update codeclimate, coveralls and eslintignore files
Sep 14, 2017
a851c1a
Merge branch 'development' into react-add-books-api
adesege Sep 14, 2017
fc86de7
React add books api (#54)
adesege Sep 14, 2017
916d676
change modal location to dist
Sep 14, 2017
a2c9cf8
pull branch from remote origin
Sep 14, 2017
859a7a6
React add books api (#55)
adesege Sep 14, 2017
3edc728
integrate borrow book api with react redux
Sep 15, 2017
2b9f943
React add borrow book api (#56)
adesege Sep 15, 2017
535d32b
integrate borrow book and category api with client
Sep 16, 2017
a7eee4e
add istanbul.yml to solve travis test coverage issue
Sep 16, 2017
347650d
Remove eslint plugins from dependencies. Change nyc version from opti…
Sep 16, 2017
e531407
Integrate borrow book and category API with client
adesege Sep 16, 2017
aaedccd
Integrate stock manager api with clinet.
Sep 17, 2017
48a657c
Integrate stock manager api with client and increase coveralls coverage
adesege Sep 17, 2017
291e9a4
- remove create-react-app
Sep 22, 2017
8953391
React configure webpack (#59)
adesege Sep 22, 2017
a0603a6
implement code review
Sep 26, 2017
75e3bbf
resolve merge conflict
Sep 26, 2017
3dc47c1
Implement code review (#61)
adesege Sep 26, 2017
e086f89
move dotenv-webpack plugin to webpack.config.dev.js
Sep 26, 2017
4ea933c
Implement code review (#62)
adesege Sep 26, 2017
7572f96
add client/build to git
Sep 26, 2017
2e47d94
resolve merge conflict
Sep 26, 2017
880aeeb
add return statement to book create method
Sep 26, 2017
a453506
update sendSurcharge cron job
Sep 26, 2017
6478977
chore(implement-lf-feedback): implement LF feedback during code defen…
adesege Oct 31, 2017
e764318
chore(implement-lf-feedback): implement LF feedback during code defen…
adesege Oct 31, 2017
4342aeb
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Oct 31, 2017
4e8eebd
bug(make-test-pass): make test pass on travis
adesege Nov 1, 2017
02e971a
#152448071 Make test pass
adesege Nov 1, 2017
f511bcb
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Nov 1, 2017
d7800c3
feature(social-auth): add facebook and google social login
adesege Nov 2, 2017
7155f3d
bug(bug-fix): change the order of users migration files
adesege Nov 2, 2017
27bd944
#149782605 Social login auth
adesege Nov 2, 2017
05ab0db
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Nov 2, 2017
0cb92f0
feat(reset-password): reset password on client side
adesege Nov 2, 2017
764cf1b
#152500870 Client reset password
adesege Nov 2, 2017
53835da
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Nov 3, 2017
d94cbb1
chore(server-test): refactor server test to separate folders
adesege Nov 5, 2017
80a8102
Chore/152535776/refactor server test (#67)
adesege Nov 5, 2017
63cd6b9
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Nov 6, 2017
f0ff38d
#152593317 Refactor readme documentation (#68)
adesege Nov 6, 2017
883f01c
#152768727 Refactor server side api versioning (#69)
adesege Nov 10, 2017
1fe1208
#152768199 Stabilize base app (#70)
adesege Nov 16, 2017
0a4bd22
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Nov 16, 2017
b9a439b
chore(client-validation): add client side validation to sigin, signup…
adesege Nov 16, 2017
0b9abd8
#152917456 Client validation forms (#71)
adesege Nov 16, 2017
6d813ff
bug(bug-fix): fix bug that doesn't allow users add a book in production
adesege Nov 18, 2017
bb1425b
#152991073 Users can't add book (#72)
adesege Nov 18, 2017
835a4dd
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Nov 18, 2017
5e62a7b
#152991945 Refactor add book error handling (#73)
adesege Nov 19, 2017
0e4a5e3
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Nov 19, 2017
8fc2553
change book description datatype to text
adesege Nov 19, 2017
c38dd70
feature(notifications): add admin notifications when user borrows and…
adesege Nov 23, 2017
26ee1ed
feature(notifications): add admin notifications when user borrows and…
adesege Nov 24, 2017
e8a8ee7
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Nov 24, 2017
18f1ac9
chore(search-filtering-pagination): add search, filtering and paginat…
adesege Nov 26, 2017
62f9734
chore(client-test): setup client side testing
adesege Dec 4, 2017
8d9c2b9
chore(client-test): setup client side testing
adesege Dec 4, 2017
2db0888
Merge branch 'development' of http://github.com/adesege/HelloBooks in…
adesege Dec 11, 2017
b34cbeb
chore(refactor-server-test): refactor server test naming convention
adesege Dec 12, 2017
0c1cca4
chore(refactor-api-documentation): use slate for api documentation
adesege Dec 13, 2017
7c572c1
chore(e2e-test): setup and write test for end-to-end testing using ni…
adesege Dec 19, 2017
2d22479
chore(jsdoc-tags-description): add description to jsdoc tags
adesege Dec 24, 2017
21a59af
chore(api-documentation): refactor documentation to mirror actual res…
adesege Dec 24, 2017
db14377
chore(e2e-test): add books, borrowed books and category e2e tests
adesege Dec 26, 2017
70aedf3
chore(heroku-deploy): fix cross platform error
adesege Jan 1, 2018
172a2ad
chore: fix admin logout when updating book
adesege Jan 1, 2018
28741fd
chore: change response messages to reflect what is being sent from th…
adesege Jan 2, 2018
60c835d
bug(bug-fix): books view should display
adesege Jan 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .babelrc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"presets": ["es2015"]
"presets": ["env"],
"plugins": ["transform-es2015-destructuring", "transform-object-rest-spread"]
}
17 changes: 17 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
engines:
duplication:
enabled: false
config:
languages:
javascript:
mass_threshold: 20
ratings:
paths:
- "**.js"
exclude_paths:
- "server/src/api/v1/tests/"
- "node_modules/"
- "template/"
- "server/dist/"
- "client/node_modules/"
- "server/src/docs/"
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
repo_token: COVERALLS_TOKEN
repo_token: COVERALLS_REPO_TOKEN
Empty file modified .editorconfig
100644 → 100755
Empty file.
24 changes: 24 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
COVERALLS_REPO_TOKEN=

TEST_DB_NAME=
TEST_DB_HOST=
TEST_DB_PASSWORD=
TEST_DB_USERNAME=

PRODUCTION_DB_NAME=
PRODUCTION_DB_HOST=
PRODUCTION_DB_PASSWORD=
PRODUCTION_DB_USERNAME=

DEVELOPMENT_DB_NAME=
DEVELOPMENT_DB_HOST=
DEVELOPMENT_DB_PASSWORD=
DEVELOPMENT_DB_USERNAME=

TOKEN_SECRET=

GMAIL_USERNAME=
GMAIL_PASSWORD=

EMAIL_FROM=
TIMEZONE=
10 changes: 7 additions & 3 deletions .eslintignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
node_modules/
client/
template/
template/assets/js/**
template/assets/**
server/dist/**
.idea/
template/**
coverage/
.nyc_output/
node_modules
.env
server/src/docs
69 changes: 36 additions & 33 deletions .eslintrc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
{
"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"],
"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
}
}]
}
}
{
"root": true,
"extends": [ "airbnb-base" ],
"env": {
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"max-len": ["error", 80],
"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"],
"import/no-unresolved": [2, { "commonjs": true }],
"no-shadow": ["error", { "allow": ["req", "res", "err"] }],
"valid-jsdoc": ["error", {
"requireReturn": true,
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": true,
"matchDescription": ".+"
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true
}
}]
}
}
12 changes: 9 additions & 3 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
node_modules/
server/src/config.json
**/node_modules/
.env
.idea/
server/dist/**/*.js
!server/dist/config
client/src/assets/css/*.css
server/dist/**
coverage/
.nyc_output/
.DS_STORE
client/build
.vscode
reports
6 changes: 3 additions & 3 deletions .hound.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
eslint:
enabled: true
config_file: .eslintrc
eslint:
enabled: true
config_file: .eslintrc
ignore_file: .eslintignore
2 changes: 2 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
instrumentation:
root: src
10 changes: 5 additions & 5 deletions .sequelizerc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

const path = require('path');

const version = 'v1';
module.exports = {
"config": path.resolve('./server/dist/config', 'config.json'),
"models-path": path.resolve('./server/src/models'),
"seeders-path": path.resolve('./server/src/seeders'),
"migrations-path": path.resolve('./server/src/migrations')
"config": path.resolve('./server/dist/config', 'index.js'),
"models-path": path.resolve(`./server/dist/api/${version}/models`),
"seeders-path": path.resolve(`./server/dist/api/${version}/seeders`),
"migrations-path": path.resolve(`./server/dist/api/${version}/migrations`)
};
29 changes: 23 additions & 6 deletions .travis.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
env:
global:
- CC_TEST_REPORTER_ID=$CODECLIMATE_REPO_TOKEN
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
language: node_js
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
script:
- bundle exec rspec
# Preferably you will run test-reporter on branch update events. But
# if you setup travis to build PR updates only, you don't need to run
# the line below
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
# In the case where travis is setup to build PR updates only,
# uncomment the line below
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
node_js:
- node
notifications:
- email: false
email: false
webhooks: https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN
services:
- postgresql
before_script:
- npm install -g codeclimate-test-reporter
- npm install -g sequelize
- npm install -g codeclimate-test-reporter coveralls sequelize jest istanbul-combine
- psql -c 'drop database if exists travis;' -U postgres
- psql -c 'create database travis;' -U postgres
- npm run build
- NODE_ENV=test npm run test:db
script:
- npm test
- npm run test:coverage
after_success:
- CODECLIMATE_REPO_TOKEN=CODECLIMATE_TOKEN codeclimate-test-reporter < coverage/lcov.info
- istanbul-combine -d merged-coverage -p summary -r lcov client/coverage/coverage-*.json coverage/coverage-*.json
- codeclimate-test-reporter < merged-coverage/lcov.info
- coveralls < merged-coverage/lcov.info
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2017 Fadojutimi Temitayo Olusegun

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 2 additions & 1 deletion Procfile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
web: npm start
web: npm run start
clock: node server/dist/api/v1/cron/index.js
Loading