How to Connect NodeJS App to MongoDB? | ExpressJS & Mongoose (Part 2 of 3)
Etisha Garg Etisha Garg
80.8K subscribers
1,162 views
47

 Published On Dec 18, 2023

Join the Community → https://www.jsanytime.com/community/

In this tutorial, I'll guide you how to connect Node.js app to MongoDB using Express.js and Mongoose, with a focus on MongoDB Atlas.

In the first part, we cover setting up MongoDB Atlas—a cloud-based service. We will learn how to create an account and configure it. In the second part, we'll dive into connecting MongoDB to Node.js application. Beyond basic connection, I'll show you how to create a schema and model for the data.

By the end of this tutorial, you will have learned how to seamlessly integrate for effective data flow between our app and the database.

If you missed Part 1 on setting up a backend server, check out the link below.

(Part 1 of 3) How to Create a Full-Stack Web App? | ReactJS, ExpressJS and NodeJS :
   • How to Create a Full-Stack Web App? |...  

(Part 3 of 3) Build REST CRUD API with Node, Express MongoDB & Postman :
   • Build Restful CRUD API with Node, Exp...  

MongoDB Notes: https://docs.google.com/document/d/1w...

Want full source code of the project? Drop a link in the comments!

► Register for MongoDB Atlas : https://www.mongodb.com/cloud/atlas/r...
► Mongoose Documentation : https://mongoosejs.com/docs/

#fullstackwebdevelopment #mongodb #mongoose #webdevelopment

=========================================

⏱ Timestamps:
(00:00) Intro
(00:20) MongoDB Overview
(00:32) MongoDB Atlas Account Creation & Configuration
(03:45) How data gets stored in MongoDB?
(04:13) Process to connect MongoDB to NodeJS overview
(05:25) How to Setup the backend server?
(05:48) Establish a connection to MongoDB using Mongoose
(19:03) Defining Schema, Creating Model and Collection
(13:14) Summary
(13:26) Outro

► Follow on Github to get latest source code of projects: https://github.com/EtishaGarg

► For more content like this, subscribe to my channel:    / etishagarg  

► Support me to make more such videos
Patreon:   / etishagarg  

► Follow Me On Social Media
LinkedIn:   / etisha-garg  
Twitter:   / gargetisha  
Instagram:   / gargetisha  

► For business inquiries, reach us on: [email protected]

show more

Share/Embed