Express Mongoose Es6 Rest Api

screenshot of Express Mongoose Es6 Rest Api
express

:collision: A boilerplate application for building RESTful APIs Microservice in Node.js using express and mongoose in ES6 with code coverage and JsonWebToken Authentication

Overview

This is a boilerplate application for building REST APIs in Node.js using ES6 and Express with Code Coverage and JWT Authentication. It helps developers stay productive by following best practices and adhering to Airbnb's Javascript style guide. The application is heavily inspired by Egghead.io's tutorial on how to write an open source JavaScript library.

Features

  • ES6 via Babel: Supports ES6 syntax using Babel.
  • Authentication via JsonWebToken: Provides authentication functionality using jsonwebtoken.
  • Code Linting: Uses ESLint with eslint-config-airbnb to enforce JavaScript code styles and identify patterns.
  • Auto server restart: The server automatically restarts using nodemon whenever an edit is made, with babel compilation and eslint.
  • ES6 Code Coverage via istanbul: Supports code coverage of ES6 code using istanbul and mocha. Coverage reports are saved in the coverage/ directory. It can be viewed by opening coverage/lcov-report/index.html or displayed on the console using yarn test.
  • Debugging via debug: Allows for selective debugging of portions of the code by setting the DEBUG env variable. If DEBUG env variable is not set, nothing is displayed to the console.
express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.