{"id":25216371,"url":"https://github.com/arnobt78/task-management-server--react-fundamental-project-15","last_synced_at":"2025-04-05T09:15:21.128Z","repository":{"id":276760506,"uuid":"930200743","full_name":"arnobt78/Task-Management-Server--React-Fundamental-Project-15","owner":"arnobt78","description":"This is a simple task management server built with Express.js (using for running React Query Task Manager - React Fundamental Project 15) . It provides a RESTful API to manage tasks, including creating, updating, and deleting tasks.","archived":false,"fork":false,"pushed_at":"2025-02-10T09:31:19.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T09:15:18.311Z","etag":null,"topics":["axios","axios-react","backend","backend-api","crud-api","crud-application","crud-operation","expressjs","nodejs","react","reactjs","restful-api","server","server-side-rendering","task-management"],"latest_commit_sha":null,"homepage":"https://task-management-server-nyfr.onrender.com","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/arnobt78.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":"2025-02-10T08:45:39.000Z","updated_at":"2025-02-10T19:25:36.000Z","dependencies_parsed_at":"2025-02-10T09:35:56.002Z","dependency_job_id":"c91e78cb-a471-48f6-b9d0-8b283301fc0a","html_url":"https://github.com/arnobt78/Task-Management-Server--React-Fundamental-Project-15","commit_stats":null,"previous_names":["arnobt78/task-management-server--react-fundamental-project-15"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnobt78%2FTask-Management-Server--React-Fundamental-Project-15","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnobt78%2FTask-Management-Server--React-Fundamental-Project-15/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnobt78%2FTask-Management-Server--React-Fundamental-Project-15/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnobt78%2FTask-Management-Server--React-Fundamental-Project-15/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnobt78","download_url":"https://codeload.github.com/arnobt78/Task-Management-Server--React-Fundamental-Project-15/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312071,"owners_count":20918344,"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":["axios","axios-react","backend","backend-api","crud-api","crud-application","crud-operation","expressjs","nodejs","react","reactjs","restful-api","server","server-side-rendering","task-management"],"created_at":"2025-02-10T19:17:52.482Z","updated_at":"2025-04-05T09:15:21.107Z","avatar_url":"https://github.com/arnobt78.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Task Management Server - React Fundamental Project 15\n\nThis is a simple task management server built with Express.j (using for running React Query Task Manager - React Fundamental Project 15) . It provides a RESTful API to manage tasks, including creating, updating, and deleting tasks.\n\n**Backend Online Live:** https://task-management-server-nyfr.onrender.com\n\n**Frontend Online Live:** https://react-query-task-manager-arnob.netlify.app/\n\n**Front-End Source Code:** https://github.com/arnobt78/React-Query-Task-Manager--React-Fundamental-Project-15\n\n## Project Structure\n\n```\n.\n├── localDataServer.js\n├── package.json\n├── server.js\n└── tasks.json\n```\n\n- `localDataServer.js`: Main server file using for Local Storage Server that handles API requests. (Alternative Approach)\n- `package.json`: Contains project metadata and dependencies.\n- `server.js`: Entry point for the server (Not using Local Storage).\n- `tasks.json`: JSON file to store tasks data.\n\n## Installation\n\n1. Clone the repository.\n2. Navigate to the project directory.\n3. Install the dependencies:\n\n```sh\nnpm install\n```\n\n## Running the Server\n\nTo start the server, run:\n\n```sh\nnpm start\n```\n\nTo start the local data server, run:\n\n```sh\nnpm run local-server\n```\n\n## API Endpoints\n\n### GET /\n\nReturns a welcome message.\n\n**Response:**\n\n```html\n\u003ch1\u003eHello From Server...\u003c/h1\u003e\n```\n\n### GET /api/tasks\n\nReturns the list of tasks.\n\n**Response:**\n\n```json\n{\n  \"taskList\": [\n    {\n      \"id\": \"unique-task-id\",\n      \"title\": \"Task title\",\n      \"isDone\": false\n    }\n  ]\n}\n```\n\n### POST /api/tasks\n\nCreates a new task.\n\n**Request Body:**\n\n```json\n{\n  \"title\": \"Task title\"\n}\n```\n\n**Response:**\n\n```json\n{\n  \"task\": {\n    \"id\": \"unique-task-id\",\n    \"title\": \"Task title\",\n    \"isDone\": false\n  }\n}\n```\n\n### PATCH /api/tasks/:id\n\nUpdates the status of a task.\n\n**Request Parameters:**\n\n- `id`: The ID of the task to update.\n\n**Request Body:**\n\n```json\n{\n  \"isDone\": true\n}\n```\n\n**Response:**\n\n```json\n{\n  \"msg\": \"task updated\"\n}\n```\n\n### DELETE /api/tasks/:id\n\nDeletes a task.\n\n**Request Parameters:**\n\n- `id`: The ID of the task to delete.\n\n**Response:**\n\n```json\n{\n  \"msg\": \"task removed\"\n}\n```\n\n## Middleware\n\n- `cors`: Enables Cross-Origin Resource Sharing.\n- `morgan`: HTTP request logger middleware for Node.js.\n- `express.json()`: Parses incoming requests with JSON payloads.\n\n## Error Handling\n\nIf a route does not exist, the server responds with a 404 status code and a message:\n\n```text\nRoute does not exist\n```\n\n## Environment Variables\n\n- `PORT`: The port on which the server will listen (default is 5000).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnobt78%2Ftask-management-server--react-fundamental-project-15","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnobt78%2Ftask-management-server--react-fundamental-project-15","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnobt78%2Ftask-management-server--react-fundamental-project-15/lists"}