{"id":29792389,"url":"https://github.com/keshavabanda/micro-services","last_synced_at":"2026-04-10T06:53:14.654Z","repository":{"id":305026627,"uuid":"1021634202","full_name":"keshavaBanda/micro-services","owner":"keshavaBanda","description":"Exploring microservices in the real world - This is a sample project I was exploring recently with dockering..","archived":false,"fork":false,"pushed_at":"2025-07-17T19:08:59.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-17T22:47:07.530Z","etag":null,"topics":["api-security","authentication","express","javascript","jwt","mongodb","mongoose","nodejs","rest-api"],"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/keshavaBanda.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-07-17T17:41:08.000Z","updated_at":"2025-07-17T19:16:51.000Z","dependencies_parsed_at":"2025-07-18T01:12:22.284Z","dependency_job_id":"a811a943-3a4a-4168-bb72-10a0ef10adb5","html_url":"https://github.com/keshavaBanda/micro-services","commit_stats":null,"previous_names":["keshavabanda/micro-services"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/keshavaBanda/micro-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keshavaBanda%2Fmicro-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keshavaBanda%2Fmicro-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keshavaBanda%2Fmicro-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keshavaBanda%2Fmicro-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keshavaBanda","download_url":"https://codeload.github.com/keshavaBanda/micro-services/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keshavaBanda%2Fmicro-services/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267451242,"owners_count":24089301,"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-27T02:00:11.917Z","response_time":82,"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":["api-security","authentication","express","javascript","jwt","mongodb","mongoose","nodejs","rest-api"],"created_at":"2025-07-28T01:39:12.751Z","updated_at":"2026-04-10T06:53:14.626Z","avatar_url":"https://github.com/keshavaBanda.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧩 Microservices-Based TODO Application (MEAN Stack)\n\nThis project demonstrates how to build a scalable and secure TODO application using **Microservices architecture** with the **MEAN stack** (MongoDB, Express, Angular, Node.js).\n\n---\n\n## 📦 Project Structure\n\nmicroservices-todo-app/\n\n\n├── todo-services # Handles todo CRUD operations with authorization \u003cbr/\u003e\n├── user-services # Handles user registration, login, and JWT auth \u003cbr/\u003e\n└── frontend/ # Angular app (planned for micro frontend integration)\n\n\n---\n\n## 🚀 Features\n\n- ✅ **Two Independent Services**: `user-service` and `todo-service`\n- 🔐 **JWT-based Authentication** (via login API)\n- 🔒 **Route-Level Authorization** using Express middleware\n- 👤 Only the **creator** of a TODO can update or delete it\n- 🔁 **Service-to-Service Communication** using Axios\n- 🌱 **MongoDB Integration** with Mongoose models\n- 📅 Created using real-world REST API design principles\n\n---\n\n## 🛠 Tech Stack\n\n- **Backend**: Node.js, Express.js\n- **Database**: MongoDB (Mongoose ODM)\n- **Authentication**: JWT (JSON Web Token)\n- **Frontend**: Angular (To be integrated as Micro Frontend)\n- **Communication**: Axios for internal service HTTP calls\n\n---\n\n## 🧪 How to Run Locally\n\n### ⚙️ 1. Clone the repository\n\n```bash\ngit clone https://github.com/keshavaBanda/micro-services.git\ncd microservices-todo-app\n```\n\n\n## 🚀 2. Start MongoDB\nMake sure MongoDB is running on your system (default port 27017).\n\n🧠 Recommended: Use MongoDB Compass for UI access.\n\n## 🧍‍♂️ 3. Run user-service\n\ncd user-service\nnpm install\ncp .env.example .env     # Or manually create .env\nnpm start\n\nSample .env file:\n```bash\nPORT=3001\nJWT_SECRET=your_jwt_secret_key\nMONGO_URI=mongodb://localhost:27017/user-service\n```\n\n## ✅ 4. Run todo-service\n\ncd ../todo-service\nnpm install\ncp .env.example .env     # Or manually create .env\nnpm start\n\nSample .env file:\n```bash\nPORT=3000\nMONGO_URI=mongodb://localhost:27017/todo-service\nJWT_SECRET=your_jwt_secret_key  # Must match user-service\n```\n\n## 🧪 5. Test with Postman\nUse Postman or any REST client to:\n\nRegister/Login via user-service to get a token\n\nUse the token as Bearer \u003ctoken\u003e in the Authorization header for all todo-service API calls\n\n## ✨ Upcoming Enhancements\n 🔗 Connect to Micro Frontend (Angular)\\\n 🐳 Dockerize both services\\\n 🌐 Add API Gateway for unified routing\\\n 🔄 Refresh Token Mechanism\\\n 📊 Logging and Monitoring\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeshavabanda%2Fmicro-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeshavabanda%2Fmicro-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeshavabanda%2Fmicro-services/lists"}