Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.72 KB

README.md

File metadata and controls

25 lines (21 loc) · 1.72 KB

Node Mongo Mongoose

A nodejs scalable architecture using mongo and mongoose with ES6

Description

Nodejs been gaining popularity over few years due to its event-driven architecture and a nonblocking I/O API, that optimizes an application's throughput and scalability. Also, its provides a great support and compatibility with mongo as databse. Although this combinationation tends to work good for small application, it sometimes becomes difficult to manage and scale the application, as the application need grows, due to its schema-less design. Specially for a developer whos coming from a SQL background. With mongoose, one can create a schema based design for the server+database, that helps in various areas including middleware, plugins, population, validation. Apart from all these libraries, this repo also consists of a sclabale architecture, where each module been segregated as per its behaviour, with each having its own purpose and functionality.

Quickstart

Run the following commands after cloning the repo. Make sure you run the commands at the project root directory:

npm install
npm start

Features

  • Node - The javascript runtime environment
  • Mongo - NoSql database
  • Mongoose - An object document mapper(ODM)
  • Cluster - For improving the efficiency of nodejs server. You can have a look at cluster node to have a quick insight on the same.
  • JWT - An authentication mechanism for passing the data/information between client and server securely.