Setup MongoDB

Create a MongoDB instance on Atlas

Create an account on Atlas (opens in a new tab). Follow this tutorial (opens in a new tab) to setup a MongoDB instance.

The free tier can be enough to start.

Once created, get the connection string from "Database Deployments" -> "Connect"

Alt text

Then click on "Connect to your application" -> Drivers -> "3. Add your connection string into your application code".

Alt text

Once you copy the connection string, fill the MONGODB_URI variable in the .env file