Here I am going to explain how to set up your database MongoDB for creating REST API using node.js,express which you can later fetch using any frontend like React.I am not covering the basics of mongoDB here.
Steps to be followed:
- Go to MongoDB website mongoDB and create your free account by signing up or signing in using your Google account.
2.Create a cluster.
Choose Shared Clusters which is free.
Now you can choose AWS and North Virginia region which mostly people use and then click on Create Cluster at the bottom.
It will take few minutes in cluster creation.
Now you can use this link to connect to database in your REST API or MERN stack if you work in React or any other frontend.