DEV Community

Cover image for How to Connect Mongodb Atlas With Node JS
OnlineITtuts-Tutorials
OnlineITtuts-Tutorials

Posted on

How to Connect Mongodb Atlas With Node JS

How to Connect Mongodb Atlas With Node JS

Hey guys, today we are going to learn how to connect MongoDB Atlas with Node.js from scratch. There few simple steps that you need do to connect your Node Express with the MongoDB Atlas database.

First of all, you need to set up your project and also install three packages such as dotenv, express,s and mongoose. Once you setup and install these packages.

These packages are important to handle the env package is used to get the data from dot env file, and mongoose is used to connect your node js application with MongoDB.

Guys, I've shared complete tutorial, you must be watch it and I hope you like the video and you can get many new things from the tutorial.

Top comments (0)