Skip to Content
Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node
book

Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node

by Vasan Subramanian
May 2019
Intermediate to advanced content levelIntermediate to advanced
552 pages
14h 55m
English
Apress
Content preview from Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node
© Vasan Subramanian 2019
Vasan SubramanianPro MERN Stackhttps://doi.org/10.1007/978-1-4842-4391-6_6

6. MongoDB

Vasan Subramanian1 
(1)
Bangalore, Karnataka, India
 

In this chapter, I’ll take up MongoDB, the database layer and the M in the MERN stack. Until now, we had an array of issues in the Express server’s memory that we used as the database. We’ll replace this with real persistence and read and write the list of issues from a MongoDB database.

To achieve this, we’ll need to install or use MongoDB on the cloud, get used to its shell commands, install a Node.js driver to access it from Node.js, and finally modify the server code to replace the API calls to read and write from a MongoDB database instead of the in-memory array of issues.

MongoDB Basics ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node

Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node

Vasan Subramanian

Publisher Resources

ISBN: 9781484243916Purchase LinkPublisher Website