Express Boilerplate

This is a Node.js Express boilerplate project that includes the following features:

  • ES6 syntax with Babel
  • MongoDB with Mongoose
  • Swagger API documentation with Swagger UI
  • Environment variables management with dotenv
  • Linting with ESLint
  • Unit testing with Jest and Supertest
  • Nodemon for development server
  • npm-run-all for running multiple npm scripts in parallel

Getting Started

Installation

To install the dependencies, run:

npm install

Before running the app, you should rename the .dev-env file to .env and set the environment variables in it.

Running the Server

To start the development server with Nodemon, run:

npm run watch

Building the Project

To build the project with Babel, run:

npm run build

Running Unit Tests

To run the unit tests with Jest, run:

npm test

Linting

To run the linting with ESLint, run:

npm run lint

License

This project is licensed under the MIT License. See the LICENSE file for details.