user3373281
user3373281

Reputation: 155

Why mongoDB is used in the MEAN stack

I'm fixing the usability/documentation for the mean stack. I'm starting with Mean.JS. Can someone give me the salient reasons why the authors of the MEAN stack use MongoDB as the database? There are other databases to choose, but MongoDB is used for some reason.

I realize there are questions already covering databases, but I'm wondering specifically why it was used in the MEAN stack scenario.

Upvotes: 1

Views: 308

Answers (3)

Angelina Elliott
Angelina Elliott

Reputation: 1

A Glimpse Into Four Key Components - How MEAN Stack Adds New Dimensions To New-Age Web Applications All four components of MEAN Stack are popular in the app development space. It offers a platform that enables an effortless development work process. Let’s know about every component and its unique features.

MongoDB – Independent database framework For any web app building, data storage and management are essential. MongoDB is a popular database with NoSQL document to allow this purpose. The primary use case of this framework is to enable data storage and management of every web application development.(Read More)

Upvotes: 0

merobertsjr
merobertsjr

Reputation: 72

It think the primary reason is that MongoDB uses the same language Javascript (ECMA Script) for methods and functions API, rather than a separate language (like SQL). Thus MongoDB is a good no SQL database option, and it works much more efficiently as a database for the rest of the stack.

As others have pointed out, there are many other reasons, like that it is the most popular NoSQL database at this point. It has a decent shell and you can write Javascript in it. It is Open Source and well documented.

It is also really easy to setup, and scales fairly well, although not as good as some other NoSQL databases.

It also uses BSON, which is similar to JSON, which is similar to a Javascript object. So it is just plain easy to learn and easy to use this particular database with the rest of a Javascript stack.

Upvotes: 4

rjp46
rjp46

Reputation: 21

There's some pretty good reasons here: http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and

Upvotes: 2

Related Questions