NodeJS MongoDB

MongoDB comes with community edition and we can use it freely. Nodejs works well will MongoDB. MongoDB is a no SQL and schema free database. MongoDB is a document database designed for ease of development and scaling.

A record in MongoDB is a document, which is a data structure composed of field and value pairs. MongoDB documents are similar to JSON objects. The values of fields may include other documents, arrays, and arrays of documents.


To install MongoDB in ubuntu use the below commands.
sudo apt-get update
sudo apt install mongodb
sudo service mongodb start  //to start mongodb service

Subscribe Now