Connect MongoDB with Node.js using mongoose | MongoDB + Express.js
Vložit
- čas přidán 2. 06. 2024
- In this video I have shown how you can connect MongoDB database (NoSQL Database) with Node.js using mongoose. I have written the code using express.js in javascript for connecting with mongoDB.
Source Code Link : codewitharjun.com/connect-mon...
Install MongoDB / Compass in Windows : • Install mongoDB and Mo...
Install MongoDB / Compass in Mac : • Install mongoDB and Mo...
Install MongoDB / Compass in Ubuntu : • Install mongoDB and Mo...
Related Tutorials :
MERN Stack CRUD : • RESTful CRUD API using...
Full Stack Spring / React : • Full Stack Spring Boot...
TimeStamps :
00:00 - Introduction
00:10 - Create Database with MongoDB Compass
01:05 - Install npm packages
03:35 - Create environment variable using .env file for PORT and MongoDB URL
04:35 - Connect mongoDB with Node.js using mongoose
07:30 - Add users data into database
07:58 - Code for getting data from database
09:43 - Check the result
10:33 - Outro
PayPal : paypal.me/codewitharjun
Patreon : / codewitharjun
➡️ Subscribe : / codewitharjun
Stay Connected :
➡️ LinkedIn : / arjungautam1
➡️ Github : github.com/arjungautam1
Join Community :
➡️Discord : / discord
Follow me on :
➡️ Medium: / codewitharjun
➡️ Dev.to : dev.to/codewitharjun
#mongodb #mongoose #nodejs #CodeWithArjun #Programming - Věda a technologie
Great video for beginners...thanks for that..next time do a video using mongo vs code extension..
I am from Peru and thanks for your video it’s a Perfect video, thanks a lot!
Glad it was helpful!
This is such a great and easy to follow tutorial, thank you for sharing.
do a video so that we dont need mongo db compass ... we connect it with only a nodejs file and send data using a node js file itself
hmm. You have only connected once so does it have any effect? I suggest that you should only connect when calling the api and close the connection when done. What do you think?
I've been looking for this kind of tutorial, most of the videos around on this subject are deprecated, thanks a lot and I'm looking forward to new ones
Glad it was helpful!
Simplest is the best . your explaination was so Great!!! Arjun.👍
Thank you Arjun, very intersting and helpful great!!!
Glad it was helpful!
Thank you sir ❤
thank you for the help
Happy to help