Skip to content

A minimal Express JS boilerplate with native MongoDB module powered by awilix

License

Notifications You must be signed in to change notification settings

drraq/express-mongo-boilerplate

Repository files navigation

work in progress

Minimal Express JS and MongoDB Boilerplate

A minimal boilerplate to quick start developing RESTful API using Node JS, Express and MongoDB.

Inspiration

The inspiration for this minimal boilerplate comes from Bykea's Node Boilerplate which uses Fastify as HTTP server and PostgreSQL as database.

Few code snippets are taken from hagopj13's Node Express Boilerplate.

Features

  • HTTP Server: using Express JS express
  • NoSQL database: MongoDB Native MongoDB module mongodb
  • Redis: cache using redis
  • Environment variables: using nconf
  • Dependency injection: using awilix
  • JWT signing and verification using jsonwebtoken
  • Logging: using winston and morgan
  • Validation: request data validation using Joi
  • CORS: Cross-Origin Resource-Sharing enabled using cors
  • Compression: gzip compression with compression
  • Promise library: using bluebird
  • Array operations: using lodash
  • Docker support

About

A minimal Express JS boilerplate with native MongoDB module powered by awilix

Topics

Resources

License

Stars

Watchers

Forks