This is a simple ToDo List app built using Node.js and Express framework with MongoDB as the database. The app allows you to add, update and delete tasks from your ToDo List.
To use this app, you must have the following installed on your system:
- Node.js
- Express
- EJS
- MongoDB
-
Clone the repository or download the ZIP file.
-
Install the dependencies by running the following command:
npm install
-
Create a .env file in the root directory of the project and add the following:
DB_URL=mongodb://localhost:27017/todo PORT=3000
-
Run the app by running the following command:
npm start
-
Open your browser and go to http://localhost:3000
- Add a task by typing the task in the input field and clicking the Add button.
- Update a task by clicking the Edit button and typing the new task in the input field.
- Delete a task by clicking the Delete button.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.