updated Todo list
updated Todo list
1. PROJECT TITLE
TODO APPLICATION
2. PROJECT DESCRIPTION
The Todo Application is a RESTful API for managing a simple task list. It provides users with the ability to:
● Delete tasks, with automatic removal after 24 hours due to a time-to-live (TTL) mechanism.
This backend application is built with Node.js, using Express.js as a web framework and MongoDB as the
database.
3. TECHNOLOGY USED
● Backend Framework: Node.js with Express.js
● Development Tools:
4. ROADMAP
● Implement API endpoints for Create, Read, Update, and Delete operations.
● Add validation for inputs and proper error handling for API responses.
2. Time-Limited Tasks: Automatic deletion of tasks after 24 hours using MongoDB TTL indexing.
3. Simple Integration: RESTful API design allows seamless integration with frontend frameworks.
6. FEATURE SOLUTIONS
● Task Expiry Mechanism:
MongoDB's TTL index on the createdAt field ensures tasks are removed automatically after 24 hours.
● Error Handling:
Provides descriptive error messages for scenarios such as:
● Scalable Architecture:
A modular design ensures ease of future feature expansion and integration with external systems.
7. TEST CASES
Fetch all tasks GET /todos List of all tasks with title and completed
fields.
Create a new task POST /todo { "title": "Buy groceries" } { "message": "Todo created" }
Update task status PUT /todo/:id { "completed": true } { "message": "Todo updated" }
8. PROJECT REVIEW
This project successfully demonstrates:
Strengths:
● Use of industry best practices for database interaction and API handling.
Potential Improvements:
● Extending the application with more advanced features like task categories, reminders, or priorities.
9. CONCLUSION
The Todo Application serves as a foundational project for learning and building RESTful APIs. With features
like time-limited tasks and simple CRUD operations, it is an excellent starting point for developers. Future
enhancements, such as authentication and frontend integration, could make this application even more
versatile.
10. REFERENCES
● Todo Postman Documentation