{"id":25628410,"url":"https://github.com/mu-senpai/task-nest-server","last_synced_at":"2026-05-04T20:32:34.054Z","repository":{"id":278849029,"uuid":"936971255","full_name":"mu-senpai/task-nest-server","owner":"mu-senpai","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-22T04:15:08.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-01T02:02:07.102Z","etag":null,"topics":["expressjs","mongodb","rest-api","websocket-server"],"latest_commit_sha":null,"homepage":"https://task-nest-server.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/mu-senpai.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-22T03:15:46.000Z","updated_at":"2025-02-22T04:25:44.000Z","dependencies_parsed_at":"2025-02-22T04:22:57.763Z","dependency_job_id":"5977fb98-b6c8-4349-ac79-16d570b91266","html_url":"https://github.com/mu-senpai/task-nest-server","commit_stats":null,"previous_names":["mu-senpai/task-nest-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mu-senpai/task-nest-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu-senpai%2Ftask-nest-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu-senpai%2Ftask-nest-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu-senpai%2Ftask-nest-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu-senpai%2Ftask-nest-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mu-senpai","download_url":"https://codeload.github.com/mu-senpai/task-nest-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu-senpai%2Ftask-nest-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267278631,"owners_count":24063252,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"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":["expressjs","mongodb","rest-api","websocket-server"],"created_at":"2025-02-22T18:31:12.938Z","updated_at":"2026-05-04T20:32:33.999Z","avatar_url":"https://github.com/mu-senpai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TaskNest\n\n## Overview\nThe backend of TaskNest is a Node.js and Express-based server that manages task operations, real-time updates with Socket.io, and data storage using MongoDB. The server is deployed on Vercel for production.\n\n## **Live Demo**\n🔗 [Server Live Link](https://task-nest-server.onrender.com/)\n\n## Features\n- Task CRUD operations (Create, Read, Update, Delete)\n- WebSocket integration for real-time task updates\n- User authentication using Firebase Authentication\n- Task ordering and prioritization with drag-and-drop\n- Secure API with environment variable configurations\n\n## Tech Stack\n- **Node.js** - Backend runtime\n- **Express.js** - Web framework\n- **MongoDB** - Database\n- **Mongoose** - ODM for MongoDB\n- **Socket.io** - Real-time communication\n- **Firebase Authentication** - User authentication\n- **Cors \u0026 Dotenv** - Middleware for security and environment configurations\n\n## Installation\n### Prerequisites\nMake sure you have the following installed:\n- Node.js (latest version recommended)\n- MongoDB Atlas (or local MongoDB instance)\n- Firebase Project with Authentication enabled\n\n### Clone the repository\n```sh\ngit clone https://github.com/yourusername/tasknest-backend.git\ncd tasknest-backend\n```\n\n### Install dependencies\n```sh\nnpm install\n```\n\n### Setup Environment Variables\nCreate a `.env` file in the root directory and add the following variables:\n```sh\nPORT=5000\nDB_USER=your_mongo_username\nDB_PASS=your_mongo_password\nJWT_SECRET=your_jwt_secret\nFIREBASE_API_KEY=your_firebase_api_key\nFIREBASE_AUTH_DOMAIN=your_firebase_auth_domain\nFIREBASE_PROJECT_ID=your_firebase_project_id\nFIREBASE_STORAGE_BUCKET=your_firebase_storage_bucket\nFIREBASE_MESSAGING_SENDER_ID=your_firebase_messaging_sender_id\nFIREBASE_APP_ID=your_firebase_app_id\n```\n\n### Run the server\n```sh\nnpm start\n```\nThe server should be running on `http://localhost:5000`\n\n## API Endpoints\n### User Authentication\n- `POST /users` - Register or update user\n- `GET /users/:email` - Get user data by email\n\n### Task Management\n- `POST /tasks` - Create a new task\n- `GET /tasks?email=user@example.com` - Fetch tasks for a user\n- `PUT /tasks/:id` - Update a task\n- `PUT /tasks/reorder` - Reorder tasks after drag and drop\n- `DELETE /tasks/:id` - Delete a task\n\n### WebSocket Events\n- `taskCreated` - Task is created and broadcasted\n- `taskUpdated` - Task is updated in real-time\n- `taskDeleted` - Task is removed and broadcasted\n- `tasksReordered` - Tasks are reordered\n\n## Deployment\n### Deploy to Vercel\n1. Install Vercel CLI: `npm i -g vercel`\n2. Run `vercel` and follow setup prompts\n3. Deploy: `vercel --prod`\n\n## Dependencies\n```json\n{\n  \"cors\": \"^2.8.5\",\n  \"dotenv\": \"^16.4.7\",\n  \"express\": \"^4.21.2\",\n  \"mongodb\": \"^6.13.0\",\n  \"socket.io\": \"^4.8.1\"\n}\n```\n\n## License\nThis project is open-source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmu-senpai%2Ftask-nest-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmu-senpai%2Ftask-nest-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmu-senpai%2Ftask-nest-server/lists"}