Boilerplate/Generator/Starter Project for building RESTful APIs and microservices using Node.js, Express and MongoDB
You can view api documentation here or view how to generate docs below in "Getting started" section.
Changelog is located in root folder in file CHANGELOG.md
- NoSQL database: MongoDB object data modeling using Mongoose
- Authentication and authorization: using passport
- Users management: complete CRUD
- Validation: request data validation using Joi
- Logging: using morgan and winston
- Error handling: centralized error handling mechanism
- API documentation: with apidoc
- Dependency management: with npm
- Environment variables: using dotenv
- Security: set security HTTP headers using helmet
- CORS: Cross-Origin Resource-Sharing enabled using cors
- File upload: with multer
- Compression: gzip compression with compression
- Image compression: with sharp
- Linting: with Prettier
git clone --depth 1 https://martinstefanovic@bitbucket.org/itc-solution/nodejs-sandbox.git
cd nodejs-sandbox
rm -rf .git
npm i
cp .env.example .env
npm run dev
npm start
# generate and open api documentation
npm run docs
# just open generated documentation
npm run open-docs