{"id":25105105,"url":"https://github.com/nerdy-nakul/todo-application","last_synced_at":"2026-04-08T20:45:06.988Z","repository":{"id":247450871,"uuid":"825431364","full_name":"nerdy-nakul/ToDo-Application","owner":"nerdy-nakul","description":"This is a backend implementation for a ToDo application with authentication using email, password, and JWT. It includes CRUD operations for ToDo items and uses MongoDB as the database.","archived":false,"fork":false,"pushed_at":"2024-12-04T09:16:55.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-11T09:33:02.881Z","etag":null,"topics":["cookies","expressjs","js","json","jwt","mongodb","mongoose","nodejs"],"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/nerdy-nakul.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}},"created_at":"2024-07-07T18:48:19.000Z","updated_at":"2024-12-04T09:17:30.000Z","dependencies_parsed_at":"2025-02-07T22:41:32.130Z","dependency_job_id":"e9807f71-2467-4d80-8a23-92efd9830371","html_url":"https://github.com/nerdy-nakul/ToDo-Application","commit_stats":null,"previous_names":["nerdy-nakul/todo-application"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nerdy-nakul/ToDo-Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdy-nakul%2FToDo-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdy-nakul%2FToDo-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdy-nakul%2FToDo-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdy-nakul%2FToDo-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerdy-nakul","download_url":"https://codeload.github.com/nerdy-nakul/ToDo-Application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdy-nakul%2FToDo-Application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31573788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cookies","expressjs","js","json","jwt","mongodb","mongoose","nodejs"],"created_at":"2025-02-07T22:41:30.026Z","updated_at":"2026-04-08T20:45:06.972Z","avatar_url":"https://github.com/nerdy-nakul.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ToDo App Backend\n\nThis is a backend implementation for a basic ToDo application with authentication using email, password, and JWT. It includes CRUD operations for ToDo items and uses MongoDB as the database.\n\n## Features\n\n- User authentication (Signup and Login) using JWT\n- Create, Read, Update, and Delete (CRUD) operations for ToDo items\n- Middleware for protected routes\n- MongoDB for data storage\n\n## Technologies Used\n\n- Node.js\n- Express.js\n- MongoDB (Mongoose)\n- JWT (JSON Web Token)\n- bcryptjs (for password hashing)\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed on your machine:\n\n- Node.js\n- MongoDB\n\n## Getting Started\n\n### Installation\n\n1. **Clone the repository:**\n    ```sh\n    git clone https://github.com/your-username/todo-app-backend.git\n    cd todo-app-backend\n    ```\n\n2. **Install dependencies:**\n    ```sh\n    npm install\n    ```\n\n3. **Set up environment variables:**\n\n   Create a `.env` file in the root directory of your project and add the following environment variables:\n    ```env\n    MONGO_URI=your_mongodb_connection_string\n    JWT_SECRET=your_jwt_secret\n    PORT=8000\n    ```\n\n### Running the Application\n\n1. **Start the MongoDB server:**\n   Ensure your MongoDB server is running. You can start it using the following command (if installed locally) or Can use MongoDB Compass.\n    ```sh\n    mongod\n    ```\n\n2. **Start the Node.js server:**\n    ```sh\n    npm start\n    ```\n\n   The server will start on the port specified in your `.env` file (default is 8000).\n\n### API Endpoints\n\nThe following API endpoints are available:\n\n#### Auth Routes\n\n- **Signup**\n    ```\n    POST /api/v1/signup\n    ```\n\n    Request body:\n    ```json\n    {\n      \"name\":\"yourname\"\n      \"email\": \"user@example.com\",\n      \"password\": \"yourpassword\"\n    }\n    ```\n\n- **Login**\n    ```\n    POST /api/v1/login\n    ```\n\n    Request body:\n    ```json\n    {\n      \"email\": \"user@example.com\",\n      \"password\": \"yourpassword\"\n    }\n    ```\n\n#### ToDo Routes (Protected)\n\n- **Create ToDo**\n    ```\n    POST /api/v1/createTodo\n    ```\n\n    Request body:\n    ```json\n    {\n      \"title\": \"New Todo\",\n      \"desc\":\"New Desc\"\n    }\n    ```\n\n- **Get All ToDos**\n    ```\n    GET /api/v1/getTodos\n    ```\n\n- **Get ToDo by ID**\n    ```\n    GET /api/v1/getTodos/:id\n    ```\n\n- **Update ToDo**\n    ```\n    PUT /api/v1/updateTodo/:id\n    ```\n\n    Request body:\n    ```json\n    {\n      \"title\": \"Updated Todo\",\n      \"desc\":\"updated desc\"\n    }\n    ```\n\n- **Delete ToDo**\n    ```\n    DELETE /api/v1/deleteTodo/:id\n    ```\n\n### Middleware\n\nThe `Auth` middleware is used to protect routes that require authentication. It verifies the JWT token and attaches the user payload to the request object.\n\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%2Fnerdy-nakul%2Ftodo-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerdy-nakul%2Ftodo-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdy-nakul%2Ftodo-application/lists"}