Skip to content

Commit

Permalink
Add travis ci support
Browse files Browse the repository at this point in the history
  • Loading branch information
hagopj13 committed Nov 9, 2019
1 parent 28e90a6 commit f2f05e8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js
node_js:
- '12'
branches:
only:
- master
env:
global:
- PORT=3000
- JWT_SECRET=thisisasamplesecret
- JWT_ACCESS_EXPIRATION_MINUTES=30
- JWT_REFRESH_EXPIRATION_DAYS=30
script:
- yarn lint
- yarn test
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ It comes with many built-in features, such as authentication using JWT, request
- [Express](http://expressjs.com)
- [MongoDB](https://www.mongodb.com) object data modeling using [Mongoose](https://mongoosejs.com)
- Authentication using [passport](http://www.passportjs.org) and role-based authorization
- Unit and integration tests using [Jest](https://jestjs.io/)
- Unit and integration tests using [Jest](https://jestjs.io)
- Request data validation using [Joi](https://github.com/hapijs/joi)
- Advanced production process management using [PM2](https://pm2.keymetrics.io)
- Continuous integration with [Travis CI](https://travis-ci.org)
- Dependency management with [Yarn](https://yarnpkg.com)
- Logging using [winston](https://github.com/winstonjs/winston) and [morgan](https://github.com/expressjs/morgan)
- Centralized error handling mechanism
Expand Down

0 comments on commit f2f05e8

Please sign in to comment.