{"id":29190700,"url":"https://github.com/esrailhaque/event-management-backend","last_synced_at":"2026-04-09T12:34:46.549Z","repository":{"id":302098819,"uuid":"1011252474","full_name":"ESRAILHAQUE/event-management-backend","owner":"ESRAILHAQUE","description":"A robust and scalable backend API for an event management system built with Node.js, Express, and MongoDB. This project handles user authentication, event creation, updating, deletion, and retrieval. It supports role-based access, secure data handling, and integrates with frontend clients to manage events seamlessly.","archived":false,"fork":false,"pushed_at":"2025-06-30T14:57:28.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T15:38:17.139Z","etag":null,"topics":["cors","dotenv","express","jsonwebtoken","mongodb","mongoose","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://event-management-backend-kr0m.onrender.com/","language":"TypeScript","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/ESRAILHAQUE.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-30T14:29:16.000Z","updated_at":"2025-06-30T15:01:13.000Z","dependencies_parsed_at":"2025-06-30T15:41:12.103Z","dependency_job_id":"7c72a9fb-70ce-4029-97c8-0992c2535246","html_url":"https://github.com/ESRAILHAQUE/event-management-backend","commit_stats":null,"previous_names":["esrailhaque/event-management-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ESRAILHAQUE/event-management-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESRAILHAQUE%2Fevent-management-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESRAILHAQUE%2Fevent-management-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESRAILHAQUE%2Fevent-management-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESRAILHAQUE%2Fevent-management-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ESRAILHAQUE","download_url":"https://codeload.github.com/ESRAILHAQUE/event-management-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ESRAILHAQUE%2Fevent-management-backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266516222,"owners_count":23941371,"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-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["cors","dotenv","express","jsonwebtoken","mongodb","mongoose","nodejs","typescript"],"created_at":"2025-07-02T00:10:56.368Z","updated_at":"2025-12-30T22:06:56.972Z","avatar_url":"https://github.com/ESRAILHAQUE.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n```markdown\n# 🧠 EventEase - Backend API\n\nThis is the **backend server** for the **EventEase** platform — a full-featured event management system where users can create, browse, and manage events.\n\nBuilt with **Node.js**, **Express**, and **MongoDB**, this RESTful API powers the client-side application hosted separately.\n\n---\n\n## ⚙️ Technologies Used\n\n- 🌐 **Node.js**\n- 🚀 **Express.js**\n- 🗃️ **MongoDB (with Mongoose)**\n- 🔐 **JWT Authentication**\n- 🛡️ **CORS**\n- 📦 **dotenv**\n- 📫 **REST API Design**\n\n---\n\n---\n\n## 📦 Installation \u0026 Setup\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/ESRAILHAQUE/event-management-backend.git\ncd event-management-backend\n````\n\n### 2. Install Dependencies\n\n```bash\nnpm install\n```\n\n### 3. Add Environment Variables\n\nCreate a `.env` file in the root with:\n\n```\nPORT=5000\nMONGODB_URI=your_mongodb_connection_string\nJWT_SECRET=your_jwt_secret_key\n```\n\n### 4. Start the Server\n\n```bash\nnpm run dev\n```\n\nRuns the server on `http://localhost:5000`\n\n---\n\n## 🛠️ Available API Endpoints\n\n| Method | Route             | Description                 | Auth Required |\n| ------ | ----------------- | --------------------------- | ------------- |\n| GET    | `/api/events`     | Get all public events       | ✅ Yes         |\n| POST   | `/api/events`     | Create new event            | ✅ Yes         |\n| GET    | `/api/my-events`  | Get logged-in user's events | ✅ Yes         |\n| PATCH  | `/api/events/:id` | Update an event             | ✅ Yes         |\n| DELETE | `/api/events/:id` | Delete an event             | ✅ Yes         |\n| POST   | `/api/login`      | Log in (return JWT)         | ❌ No          |\n| POST   | `/api/register`   | Create new user             | ❌ No          |\n\n\u003e Note: Protect routes using `authMiddleware` (JWT)\n\n\n## 🔐 CORS Configuration\n\nTo connect with frontend (e.g., Vite/React):\n\n```js\napp.use(cors({\n  origin: ['http://localhost:5173', 'https://ph-event-management.netlify.app'],\n  credentials: true\n}));\n```\n\n---\n\n## 📫 Postman / Thunder Client\n\nYou can test all routes using:\n\n* ✅ [Postman Collection](https://example.com/postman-link) *(optional)*\n* ✅ Thunder Client (VS Code Extension)\n\n---\n\n## 🧑 Author\n\n**Esrail Haque**\n🔗 [GitHub](https://github.com/ESRAILHAQUE)\n📧 [esrailbblhs@gmail.com](mailto:esrailbblhs@gmail.com)\n🌐 [Portfolio](https://esrailhaque.netlify.app)\n\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesrailhaque%2Fevent-management-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesrailhaque%2Fevent-management-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesrailhaque%2Fevent-management-backend/lists"}