{"id":28240655,"url":"https://github.com/getange/node-microservices","last_synced_at":"2025-06-12T14:30:41.993Z","repository":{"id":290759236,"uuid":"975386838","full_name":"GETANGE/node-microservices","owner":"GETANGE","description":"This repo contains a small project to test my knowledge in distributed systems","archived":false,"fork":false,"pushed_at":"2025-06-02T16:26:42.000Z","size":216,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T05:51:16.551Z","etag":null,"topics":["expressjs","mongodb","mongoose","node-js","rabbitmq","redis-server"],"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/GETANGE.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-04-30T08:26:02.000Z","updated_at":"2025-06-02T16:26:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"5febe09c-4085-4a61-b56f-173d14673213","html_url":"https://github.com/GETANGE/node-microservices","commit_stats":null,"previous_names":["getange/node-microservices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GETANGE/node-microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GETANGE%2Fnode-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GETANGE%2Fnode-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GETANGE%2Fnode-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GETANGE%2Fnode-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GETANGE","download_url":"https://codeload.github.com/GETANGE/node-microservices/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GETANGE%2Fnode-microservices/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259482380,"owners_count":22864739,"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":["expressjs","mongodb","mongoose","node-js","rabbitmq","redis-server"],"created_at":"2025-05-19T04:11:46.787Z","updated_at":"2025-06-12T14:30:41.988Z","avatar_url":"https://github.com/GETANGE.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Microservices Project 🚀\r\n\r\nThis repository showcases a microservices-based architecture implemented with Node.js, aiming to demonstrate proficiency in building distributed systems.\r\n\r\n---\r\n\r\n## ⚙️ Technologies Used\r\n\r\n* **Node.js** – JavaScript runtime environment 🟢\r\n* **Express.js** – Web framework for Node.js 🌐\r\n* **MongoDB** – NoSQL database for data persistence 🍃\r\n* **Mongoose** – ODM for MongoDB 📄\r\n* **Redis** – In-memory data structure store, used for caching and message brokering 🧠\r\n* **RabbitMQ** – Message broker for asynchronous communication between services 🐇\r\n* **Docker \u0026 Docker Compose** – Containerization and orchestration tools 🐳\r\n\r\n---\r\n\r\n## 🧱 Microservices Overview\r\n\r\nThe application is divided into the following microservices:\r\n\r\n1. **API Gateway**: Serves as the single entry point for client requests 🚪\r\n2. **Identity Service**: Handles user authentication and authorization 🔐\r\n3. **Media Service**: Manages media uploads and processing 🖼️\r\n4. **Post Service**: Manages creation, retrieval, and manipulation of posts 📝\r\n5. **Search Service**: Provides search functionality across posts and media 🔍\r\n\r\n---\r\n\r\n## 🗂️ Project Structure\r\n\r\n```bash\r\nnode-microservices/\r\n├── api-gateway/          # Entry point for all client requests\r\n├── identity-service/     # User authentication and authorization\r\n├── media-service/        # Media upload and processing\r\n├── post-service/         # Post management\r\n├── search-service/       # Search functionality\r\n├── docker-compose.yml    # Docker Compose configuration\r\n└── README.md             # Project documentation\r\n```\r\n\r\n---\r\n\r\n## 🚀 Getting Started\r\n\r\n### 📋 Prerequisites\r\n\r\nEnsure you have the following installed:\r\n\r\n* [Docker](https://www.docker.com/) 🐳\r\n* [Docker Compose](https://docs.docker.com/compose/) 🧩\r\n\r\n### ⚙️ Installation\r\n\r\n1. **Clone the repository:**\r\n\r\n   ```bash\r\n   git clone https://github.com/GETANGE/node-microservices.git\r\n   cd node-microservices\r\n   ```\r\n\r\n2. **Start the services using Docker Compose:**\r\n\r\n   ```bash\r\n   docker-compose up --build\r\n   ```\r\n\r\n   This command will build and start all the microservices along with their dependencies.\r\n\r\n---\r\n\r\n## 📫 API Endpoints\r\n\r\nEach microservice exposes specific endpoints. Below is a summary:\r\n\r\n### 🌐 API Gateway\r\n\r\n* `POST /api/auth/register` – Register a new user ✍️\r\n* `POST /api/auth/login` – Authenticate a user 🔑\r\n* `GET /api/posts` – Retrieve all posts 📄\r\n* `POST /api/posts` – Create a new post 📝\r\n* `POST /api/media/upload` – Upload media content 📤\r\n* `GET /api/search?query=...` – Search posts and media 🔍\r\n\r\n*Note: All requests should be directed to the API Gateway, which will route them to the appropriate service.*\r\n\r\n---\r\n\r\n## 🧰 Development\r\n\r\nTo work on a specific service:\r\n\r\n1. **Navigate to the service directory:**\r\n\r\n   ```bash\r\n   cd \u003cservice-name\u003e\r\n   ```\r\n\r\n2. **Install dependencies:**\r\n\r\n   ```bash\r\n   pnpm install\r\n   ```\r\n\r\n3. **Start the service:**\r\n\r\n   ```bash\r\n   pnpm start\r\n   ```\r\n\r\nEnsure that the necessary environment variables are set, either through a `.env` file or your system's environment settings.\r\n\r\n---\r\n\r\n## 🧪 Testing\r\n\r\nEach service includes its own set of tests. To run tests for a service:\r\n\r\n1. **Navigate to the service directory:**\r\n\r\n   ```bash\r\n   cd \u003cservice-name\u003e\r\n   ```\r\n\r\n2. **Run the tests:**\r\n\r\n   ```bash\r\n   pnpm test\r\n   ```\r\n\r\n---\r\n\r\n## 📦 Deployment\r\n\r\nFor production deployment, it's recommended to:\r\n\r\n* Use a process manager like PM2 for managing Node.js processes 🔁\r\n* Set up reverse proxies (e.g., Nginx) for handling HTTPS and domain routing 🌐\r\n* Implement monitoring and logging solutions for observability 📊\r\n\r\n---\r\n\r\n## 📄 License\r\n\r\nThis project is licensed under the [MIT License](LICENSE).\r\n\r\n---\r\n\r\n## 🙏 Acknowledgments\r\n\r\nThis project was developed to demonstrate knowledge in building distributed systems using Node.js and related technologies.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetange%2Fnode-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetange%2Fnode-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetange%2Fnode-microservices/lists"}