A simple web application for managing to-do tasks using Node.js, Express, EJS, and MongoDB.
- View existing tasks
- Add new tasks
- Delete tasks by checking a checkbox
- Node.js
- MongoDB
-
Clone the repository:
git clone https://github.com/your-username/to-do-list-app.git
-
Install dependencies:
cd to-do-list-app npm install
-
Set up MongoDB:
- Make sure MongoDB is installed and running on your machine.
-
Run the application:
node app.js
The application will be accessible at http://localhost:3000/.
-
Visit http://localhost:3000/ in your web browser.
-
View existing tasks.
-
Add a new task:
- Enter the task in the "New Task" input field.
- Click the "+" button.
-
Delete a task:
- Check the checkbox next to the task you want to delete.
app.js
: Main server file.public/
: Static assets (CSS, JavaScript).views/
: EJS templates for rendering HTML pages.
- Express: Web framework for Node.js.
- Mongoose: MongoDB object modeling tool.
- EJS: Embedded JavaScript templates.
This project is licensed under the MIT License.