You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-13
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,13 @@ Heavily inspired from [Egghead.io - How to Write an Open Source JavaScript Libra
25
25
| Authentication via JsonWebToken | Supports authentication using [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken). |
26
26
| Code Linting | JavaScript code linting is done using [ESLint](http://eslint.org) - a pluggable linter tool for identifying and reporting on patterns in JavaScript. Uses ESLint with [eslint-config-airbnb](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb), which tries to follow the Airbnb JavaScript style guide. |
27
27
| Auto server restart | Restart the server using [nodemon](https://github.com/remy/nodemon) in real-time anytime an edit is made, with babel compilation and eslint. |
28
-
| ES6 Code Coverage via [istanbul](https://www.npmjs.com/package/istanbul)| Supports code coverage of ES6 code using istanbul and mocha. Code coverage reports are saved in `coverage/` directory post `npm test` execution. Open `coverage/lcov-report/index.html` to view coverage report. `npm test` also displays code coverage summary on console. Code coverage can also be enforced overall and per file as well, configured via .istanbul.yml |
28
+
| ES6 Code Coverage via [istanbul](https://www.npmjs.com/package/istanbul)| Supports code coverage of ES6 code using istanbul and mocha. Code coverage reports are saved in `coverage/` directory post `yarn test` execution. Open `coverage/lcov-report/index.html` to view coverage report. `yarn test` also displays code coverage summary on console. Code coverage can also be enforced overall and per file as well, configured via .istanbul.yml |
29
29
| Debugging via [debug](https://www.npmjs.com/package/debug)| Instead of inserting and deleting console.log you can replace it with the debug function and just leave it there. You can then selectively debug portions of your code by setting DEBUG env variable. If DEBUG env variable is not set, nothing is displayed to the console. |
30
30
| Promisified Code via [bluebird](https://github.com/petkaantonov/bluebird)| We love promise, don't we ? All our code is promisified and even so our tests via [supertest-as-promised](https://www.npmjs.com/package/supertest-as-promised). |
31
31
| API parameter validation via [express-validation](https://www.npmjs.com/package/express-validation)| Validate body, params, query, headers and cookies of a request (via middleware) and return a response with errors; if any of the configured validation rules fail. You won't anymore need to make your route handler dirty with such validations. |
32
32
| Pre-commit hooks | Runs lint and tests before any commit is made locally, making sure that only tested and quality code is committed
33
33
| Secure app via [helmet](https://github.com/helmetjs/helmet)| Helmet helps secure Express apps by setting various HTTP headers. |
34
+
| Uses [yarn](https://yarnpkg.com) over npm | Uses new released yarn package manager by facebook. You can read more about it [here](https://code.facebook.com/posts/1840075619545360)|
34
35
35
36
- CORS support via [cors](https://github.com/expressjs/cors)
36
37
- Uses [http-status](https://www.npmjs.com/package/http-status) to set http status code. It is recommended to use `httpStatus.INTERNAL_SERVER_ERROR` instead of directly using `500` when setting status code.
0 commit comments