Exploring MongoDB

Remember that the M in the MEAN stack, is an open source document-based database. It's considered a NoSQL database because it doesn't use SQL and is not relational. It integrates well with JavaScript-based tools because, instead of tables, it stores data in documents that can be treated by our Node.js application as JSON.

Note

Technically, MongoDB stores data in a format called BSON, short for Binary JSON.

Setting up MongoDB

The first step in getting MongoDB running on your system is installation. Head over to https://www.mongodb.org/downloads#production, and you will find the most updated installation download for Windows, Mac, Linux, or Solaris. There are also links to instructions there to install MongoDB with tools such as Homebrew ...

Get Mastering JavaScript Single Page Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.