{"id":25772996,"url":"https://github.com/moinuddin-dotcom/task-management-app-server","last_synced_at":"2026-04-18T02:32:58.700Z","repository":{"id":278539195,"uuid":"935959440","full_name":"Moinuddin-dotcom/Task-Management-App-server","owner":"Moinuddin-dotcom","description":"This is the backend server for the Task Management Application, built using Express.js and MongoDB. It provides RESTful APIs for user authentication, task management, and secure data handling.","archived":false,"fork":false,"pushed_at":"2025-02-22T11:26:27.000Z","size":134,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T05:32:20.120Z","etag":null,"topics":["cooke-parser","env","expressjs","jwt-authentication","mongodb"],"latest_commit_sha":null,"homepage":"https://todo-server-bice.vercel.app/","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/Moinuddin-dotcom.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-02-20T09:53:38.000Z","updated_at":"2025-02-22T11:26:30.000Z","dependencies_parsed_at":"2025-02-20T10:34:31.703Z","dependency_job_id":"41384931-a2a2-4fad-857b-f249bcd19081","html_url":"https://github.com/Moinuddin-dotcom/Task-Management-App-server","commit_stats":null,"previous_names":["moinuddin-dotcom/task-management-app-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Moinuddin-dotcom/Task-Management-App-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moinuddin-dotcom%2FTask-Management-App-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moinuddin-dotcom%2FTask-Management-App-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moinuddin-dotcom%2FTask-Management-App-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moinuddin-dotcom%2FTask-Management-App-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Moinuddin-dotcom","download_url":"https://codeload.github.com/Moinuddin-dotcom/Task-Management-App-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moinuddin-dotcom%2FTask-Management-App-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cooke-parser","env","expressjs","jwt-authentication","mongodb"],"created_at":"2025-02-27T04:28:53.807Z","updated_at":"2026-04-18T02:32:58.695Z","avatar_url":"https://github.com/Moinuddin-dotcom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Task Management Application - Backend\n\nThis is the backend server for the Task Management Application, built using **Express.js** and **MongoDB**. It provides RESTful APIs for user authentication, task management, and secure data handling.\n\n\n## Features\n- User authentication with JWT (JSON Web Token)\n- Task creation, retrieval, update, and deletion\n- Secure cookie-based authentication\n- Protected routes using middleware\n\n## Technologies Used\n- **Node.js**\n- **Express.js**\n- **MongoDB \u0026 MongoDB Atlas**\n- **JWT (JSON Web Token)**\n- **Cookie Parser**\n- **Cors**\n- **Dotenv**\n\n## Setup and Installation\n\n### 1. Clone the Repository\n```sh\ngit clone https://github.com/Moinuddin-dotcom/Task-Management-App-server.git\ncd task-management-backend\n```\n\n### 2. Install Dependencies\n```sh\nnpm install\n```\n\n### 3. Set Up Environment Variables\nCreate a `.env` file in the root directory and add the following:\n```env\nPORT=8004\nDB_NAME=your_mongodb_username\nDB_PASS=your_mongodb_password\nSECRET_KEY=your_jwt_secret_key\nNODE_ENV=development\n```\n\n### 4. Start the Server\n```sh\nnpm start\n```\nThe server will start on `http://localhost:8004`.\n\n## API Endpoints\n\n### Authentication\n- **POST `/jwt`** - Generates a JWT token and sets it in a cookie.\n- **GET `/logout`** - Clears the authentication token.\n\n### Users\n- **POST `/users`** - Registers a new user.\n\n### Tasks\n- **POST `/tasks`** *(Protected Route)* - Creates a new task.\n- **GET `/tasks/:email`** *(Protected Route)* - Retrieves tasks for a specific user by email.\n- **DELETE `/tasks/:id`** *(Protected Route)* - Deletes a task by ID.\n- **PUT `/tasks/:id`** *(Protected Route)* - Updates a task by ID.\n\n## Middleware\n- **`verifyToken`**: Protects routes by validating JWT tokens.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoinuddin-dotcom%2Ftask-management-app-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoinuddin-dotcom%2Ftask-management-app-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoinuddin-dotcom%2Ftask-management-app-server/lists"}