Setup MongoDB for Node project

Search for a command to run...

No comments yet. Be the first to comment.
"ddrescue got your data off the dying drive. Now what? This is where you actually get it back." š The Big Picture First A lot of people think ddrescue restores data. It doesn't ā not directly. Here
"Your hard drive is making a clicking sound. Your stomach drops. Don't panic ā ddrescue has your back." š¤ What Even Is ddrescue? Imagine your hard drive is a library. Some books are fine. Some are
Most teams treat SELinux as an obstacle. The teams that thrive in production treat it as a superpower. Here's everything you need to know to move from frustrated to fluent. If you've ever Googled a
Application Load Balancer? A load balancer serves as the single point of contact for clients. The load balancer distributes incoming application traffic across multiple targets, such as EC2 instances, in multiple Availability Zones. This increases th...

In this Lab you will get the idea of the following: Created an Amazon EC2 launch template Created an Amazon EC2 Auto Scaling launch configuration Configured scaling policies and created auto Scaling group to scale in and scale out the number of se...

Go to https://www.mongodb.com and click Try Free button
Click on signup with Google or fill out the given form and accept permission
Fill in the answer to all questions { you can select any options according to your own thought}
You can see an interface like this

Click on Create button to create a new deployment environment
Select M0 FREE database package as shown below:

You can also select other Region for better performance
Give the Name of your Cluster, then click Create

Also, please Create a username and Password of your choice, copy the password, and save it to Notepad for further use

After copying click on Create User button

Here click Add My Current IP Address and then Finish and Close
After some time your Cluster will be ready and look like when you click Database at the left bar

After that Click Connect and do following
Click MongoDB for VS Code

Copy the marked command and close the terminal

Now open the VS code and go to the Extensions to download

Now you can see the symbol of MongoDB at the left sidebar

Click Add Connection -> then Connect
Paste the copied command from above and replace <password>, then the new command looks like the following


Press enter. MongoDB connected Successfully
Create Database
Click (+) icon and it automatically opens a file

Edit the file as follows and run by pressing the play button at the top right corner

Now you can use MongoDB with ease.