© Vasan Subramanian 2017

Vasan Subramanian, Pro MERN Stack, 10.1007/978-1-4842-2653-7_6

6. Using MongoDB

Vasan Subramanian

(1)Bangalore, Karnataka, India

In this chapter, you’ll learn about MongoDB. The goal is to get rid of the in-memory list of issues and start using a MongoDB database to add and retrieve issues. To achieve this, we will need to install MongoDB, learn about how to add to and list records from the database directly, and then modify the server code to use MongoDB to persist the list of issues.

MongoDB Basics

This section is an introductory section, where we will not be modifying the application. We’ll look at the following core concepts in this section: MongoDB, documents, and collections. Then, we’ll install MongoDB and explore these ...

Get Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node 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.