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
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.
To start the development server with Nodemon, run:
npm run watch
To build the project with Babel, run:
npm run build
To run the unit tests with Jest, run:
npm test
To run the linting with ESLint, run:
npm run lint
This project is licensed under the MIT License. See the LICENSE file for details.