Member-only story
Creating a ToDo App with a MEVN Full Stack (Part 2)
If you want to follow this guide from the beginning, you can find the first part here. In it, we set up the project including the Vue client, Node/Express backend, and Axios to communicate between the client and server.
Welcome back — you already have the project’s outline and probably just want me to skip the intro and get right into implementing MongoDB into our MEVN stack. No complaints — less writing for me.
Creating a MongoDB on MongoAtlas
MongoDB runs a simple cloud database service called Mongo Atlas. I think it’s super easy, offers a free tier, and a lot better than simply hosting an entire database locally. So first, sign up for your account here.
Follow the setup instructions to get a free tier by choosing a provider that says free tier available and also choosing an M0 cluster, which has free-forever usage. Once it’s created, we’ll have to create your first user on the cluster. Head over to the “Security” tab, click “Add New User”, and create a User with the following settings.