{"id":19719118,"url":"https://github.com/divyansh956/todoapp-backend","last_synced_at":"2026-04-12T00:36:44.537Z","repository":{"id":205792317,"uuid":"714326765","full_name":"divyansh956/TodoApp-Backend","owner":"divyansh956","description":"A simple TodoApp built with Express.js and MongoDB, providing basic CRUD operations (Create, Read, Update, Delete) for managing tasks.","archived":false,"fork":false,"pushed_at":"2023-11-06T13:41:06.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T15:47:57.328Z","etag":null,"topics":["expressjs","mongodb","postman","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/divyansh956.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-04T15:27:40.000Z","updated_at":"2023-11-06T14:21:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b5b5392-b126-40f0-9e68-18ce15c7851a","html_url":"https://github.com/divyansh956/TodoApp-Backend","commit_stats":null,"previous_names":["divyansh956/todoapp-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyansh956%2FTodoApp-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyansh956%2FTodoApp-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyansh956%2FTodoApp-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyansh956%2FTodoApp-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divyansh956","download_url":"https://codeload.github.com/divyansh956/TodoApp-Backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241039531,"owners_count":19898704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expressjs","mongodb","postman","reactjs"],"created_at":"2024-11-11T23:06:24.404Z","updated_at":"2026-04-12T00:36:39.511Z","avatar_url":"https://github.com/divyansh956.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TodoApp with Express.js and MongoDB\n\nA simple TodoApp built with Express.js and MongoDB, providing basic CRUD operations (Create, Read, Update, Delete) for managing tasks.\n\n## Prerequisites\n\nMake sure you have the following installed:\n\n- [Node.js](https://nodejs.org/)\n- [MongoDB](https://www.mongodb.com/)\n\n## Getting Started\n\n1. **Clone the repository**\n\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd TodoApp-Express-MongoDB\n   ```\n\n2. **Install Dependencies**\n\n   ```bash\n   npm install\n   ```\n\n3. **Configure MongoDB**\n\n   - Make sure your MongoDB server is up and running.\n   - Update the MongoDB connection URL in `config.js` file if necessary.\n\n4. **Start the Application**\n\n   ```bash\n   npm start\n   ```\n\n   The app will be running at `http://localhost:3000`.\n\n## API Endpoints\n\n### 1. **Get All Todos:**\n\n- **Method:** GET\n- **URL:** `http://localhost:3000/ap1/v1/getTodos`\n\n### 2. **Get Todo by ID:**\n\n- **Method:** GET\n- **URL:** `http://localhost:3000/ap1/v1/getTodos:id`\n\n### 3. **Create Todo:**\n\n- **Method:** POST\n- **URL:** `http://localhost:3000/ap1/v1/createTodo`\n- **Body:**\n  ```json\n  {\n    \"title\": \"New Todo\",\n    \"description\": \"Todo Description\"\n  }\n  ```\n- **Headers:**\n  - `Content-Type: application/json`\n\n### 4. **Update Todo:**\n\n- **Method:** PUT\n- **URL:** `http://localhost:3000/api/v1/updateTodo/:id`\n- **Body:**\n  ```json\n  {\n    \"title\": \"Updated Todo\",\n    \"description\": \"Updated Description\"\n  }\n  ```\n- **Headers:**\n  - `Content-Type: application/json`\n\n### 5. **Delete Todo:**\n\n- **Method:** DELETE\n- **URL:** `http://localhost:3000/api/v1/deleteTodo/:id`\n\nIn Postman, you can select the appropriate HTTP method from the dropdown menu, enter the URL, set the request body and headers accordingly, and then click \"Send\" to make the request.\n\n## Technologies Used\n\n- **Express.js:** Web framework for Node.js.\n- **MongoDB:** NoSQL database for storing todo data.\n- **Mongoose:** MongoDB object modeling for Node.js.\n- **Body-parser:** Node.js body parsing middleware.\n- **Nodemon:** Development utility that automatically restarts the server.\n- **dotenv:** Loads environment variables from a `.env` file.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyansh956%2Ftodoapp-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivyansh956%2Ftodoapp-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyansh956%2Ftodoapp-backend/lists"}