An updated version of the simple to-do list application built with MongoDB
$ git clone https://github.com/gabrielsanttana/todolist-v2
Before running the project, it's necessary to have a database setup on a MongoDB Atlas Cluster. With that, create a .env
file in the backend folder root and put these keys in environment variables and they'll work on the mongoose connection string.
Example:
MONGODB_USERNAME=your_username
MONGODB_PASSWORD=your_password
MONGODB_CLUSTER_URL=your_cluster_url
If you prefer, you can just place your connection string on the server.js
file:
mongoose.connect(`mongodb+srv...`);
Then:
$ cd todolist-v2
$ npm install
$ npm start
The application will pop-up in the browser on http://localhost:3000