This project is a RESTful API for a Todo application, built using Node.js and Express. It serves as the backend for a Todo frontend application and includes all standard CRUD operations with proper error handling, data validation, and database integration using MongoDB.
- CRUD Operations:
- Create: Add a new todo.
- Read: Retrieve todos.
- Update: Modify existing todos.
- Delete: Remove todos.
- Validation: Ensures all input data is validated before processing.
- Error Handling: Handles errors gracefully with meaningful responses.
- Database Integration: Integrated MongoDB using Mongoose for data persistence.
- RESTful Architecture: Adheres to REST principles for API design.
- Consistent Response Formatting: Ensures uniformity in API responses.
- Code Organization: Structured codebase for maintainability and scalability.
- Schema Design: Used Mongoose to define a robust schema for todos.
- Node.js (v16 or higher)
- Clone the repository:
git clone https://github.com/DevAnuhas/todo-app-api.git- Install dependencies:
cd todo-app-api
npm installCreate a .env file in the root directory and add the following:
MONGODB_URI=<your_mongodb_connection_string>npm run devContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.