{"id":28936334,"url":"https://github.com/ali-husnain09/todo-app-backend","last_synced_at":"2026-05-07T06:32:47.245Z","repository":{"id":299034158,"uuid":"1001876565","full_name":"ali-husnain09/Todo-App-Backend","owner":"ali-husnain09","description":"A simple and efficient backend-only Todo application built with Express.js. This app provides RESTful API endpoints to create, read, update, and delete todos.","archived":false,"fork":false,"pushed_at":"2025-06-14T08:34:31.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T20:08:56.888Z","etag":null,"topics":["backend","backend-api","backend-service","express-js","mongodb","nodejs","todo-app","todo-list"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ali-husnain09.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-06-14T08:14:29.000Z","updated_at":"2025-06-14T08:34:34.000Z","dependencies_parsed_at":"2025-06-14T09:26:29.412Z","dependency_job_id":"cbb1f13e-6b02-4151-8b7c-c328e9f4d3b4","html_url":"https://github.com/ali-husnain09/Todo-App-Backend","commit_stats":null,"previous_names":["ali-husnain09/todo-app--backend-"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ali-husnain09/Todo-App-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-husnain09%2FTodo-App-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-husnain09%2FTodo-App-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-husnain09%2FTodo-App-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-husnain09%2FTodo-App-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ali-husnain09","download_url":"https://codeload.github.com/ali-husnain09/Todo-App-Backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-husnain09%2FTodo-App-Backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261358692,"owners_count":23146674,"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":["backend","backend-api","backend-service","express-js","mongodb","nodejs","todo-app","todo-list"],"created_at":"2025-06-22T20:08:36.845Z","updated_at":"2026-05-07T06:32:47.239Z","avatar_url":"https://github.com/ali-husnain09.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo App\nA simple todo app built with express, node.js and mongodb as a backend service.\n## Features\n- Add, edit, and delete todos\n\n# Installation\n1. Clone the repository\n   ```bash\n   git clone \u003chttps://github.com/ali-husnain09/Todo-App-Backend\u003e\n   cd \u003cTodo-App-Backend\u003e\n   ```\n2. Install dependencies\n   ```bash\n    npm install\n    ```\n3. Set up environment variables\n    Create a `.env` file in the root directory and add the following variables:\n    ```plaintext\n    PORT=3000\n    MONGODB_URI=mongodb://localhost:27017/todoapp\n    ```\n4. Start the server\n    ```bash\n    npm run dev\n    ```\n5. Access the app\n    Open your browser and go to `http://localhost:3000`\n# API Endpoints\n## Todos    \n### Get all todos\n- **URL**: `/getTodos`\n- **Method**: `GET` \n- **Response**: \n  ```json\n  [\n    {\n      \"_id\": \"todo_id\",\n      \"title\": \"Todo Title\",\n      \"description\": \"Todo Description\",\n      \"completed\": false,\n      \"createdAt\": \"2023-10-01T00:00:00.000Z\"\n    }\n  ]\n  ```\n### Create a new todo\n- **URL**: `/createTodo` \n- **Method**: `POST`\n- **Body**: \n  ```json\n  {\n    \"title\": \"New Todo\",\n    \"description\": \"Todo Description\"\n  }\n  ```\n- **Response**: \n  ```json\n  {\n    \"_id\": \"new_todo_id\",\n    \"title\": \"New Todo\",\n    \"description\": \"Todo Description\",\n    \"completed\": false,\n    \"createdAt\": \"2023-10-01T00:00:00.000Z\"\n  }\n  ```\n### Update a todo\n- **URL**: `/updateTodo/:id`\n- **Method**: `PUT`\n- **Body**: \n  ```json\n  {\n    \"title\": \"Updated Todo\",\n    \"description\": \"Updated Description\",\n    \"completed\": true\n  }\n  ```\n- **Response**: \n  ```json\n  {\n    \"_id\": \"todo_id\",\n    \"title\": \"Updated Todo\",\n    \"description\": \"Updated Description\",\n    \"completed\": true,\n    \"createdAt\": \"2023-10-01T00:00:00.000Z\"\n  }\n  ```\n### Delete a todo\n- **URL**: `/deleteTodo/:id`\n- **Method**: `DELETE`\n- **Response**: \n  ```json\n  {\n    \"message\": \"Todo deleted successfully\"\n  }\n  ```\n# License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali-husnain09%2Ftodo-app-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali-husnain09%2Ftodo-app-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali-husnain09%2Ftodo-app-backend/lists"}