{"id":16112361,"url":"https://github.com/eddie4k-code/express-based-event-bus","last_synced_at":"2025-04-06T06:44:45.884Z","repository":{"id":233185570,"uuid":"786250724","full_name":"Eddie4k-code/Express-Based-Event-Bus","owner":"Eddie4k-code","description":"an example of an Express-based Event Bus that distributes events to other services (posts, comments, query)","archived":false,"fork":false,"pushed_at":"2024-04-20T21:45:36.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T12:21:54.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Eddie4k-code.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}},"created_at":"2024-04-13T21:52:59.000Z","updated_at":"2024-04-20T21:45:39.000Z","dependencies_parsed_at":"2024-04-20T22:23:45.020Z","dependency_job_id":"3aa6d70e-122b-4a4c-a006-0646d4893a98","html_url":"https://github.com/Eddie4k-code/Express-Based-Event-Bus","commit_stats":null,"previous_names":["eddie4k-code/express-based-eventbus-demo","eddie4k-code/express-based-event-bus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eddie4k-code%2FExpress-Based-Event-Bus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eddie4k-code%2FExpress-Based-Event-Bus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eddie4k-code%2FExpress-Based-Event-Bus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eddie4k-code%2FExpress-Based-Event-Bus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eddie4k-code","download_url":"https://codeload.github.com/Eddie4k-code/Express-Based-Event-Bus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445651,"owners_count":20939953,"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":[],"created_at":"2024-10-09T20:07:20.700Z","updated_at":"2025-04-06T06:44:45.868Z","avatar_url":"https://github.com/Eddie4k-code.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express Event Bus Demo\n\nThis project demonstrates an event-driven architecture using an Express-based event bus. It consists of several microservices:\n\n- **Posts Service:** Responsible for managing posts.\n- **Query Service:** Handles queries related to posts.\n- **Comments Service:** Manages comments on posts.\n- **Event-Broker Service:** Distributes events among other services.\n\nThe Event Broker distributes events to other services, and all other services post events to the Event Broker.\n\n## Prerequisites\n\n- Kubernetes installed on your system.\n- Terraform installed on your system.\n\n## Getting Started\n\n1. Clone this repository.\n2. Ensure you have a Kubernetes installed and Terraform installed.\n3. Run `make apply` to install the Ingress-Nginx controller and provision all Kubernetes manifests for the services.\n4. Access the services through the Ingress controller.\n\n## Usage\n\n### `make apply`\n\nThis command will install the Ingress-Nginx controller and provision all Kubernetes manifests for the services.\n\n### `make destroy`\n\nThis command will destroy all Kubernetes-related infrastructure provisioned by Terraform.\n\n## Services\n\n- **Posts Service:** Manages posts.\n- **Query Service:** Handles queries related to posts.\n- **Comments Service:** Manages comments on posts.\n- **Event-Broker Service:** Distributes events among other services.\n\n## Nginx Routes\n- **localhost/posts/create:** Reaches the post-service to create a new post\n- **localhost/posts:** Reaches the query-service to query posts\n- **localhost/posts/comments:** Reaches the comment-service for creating comments\n\n## Project Structure\n\n- `/post-service`: Contains the Posts Service.\n- `/query-service`: Contains the Query Service.\n- `/comments-service`: Contains the Comments Service.\n- `/event-broker`: Contains the Event Broker Service.\n- `/terraform`: Contains Terraform configurations for Kubernetes infrastructure provisioning.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddie4k-code%2Fexpress-based-event-bus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddie4k-code%2Fexpress-based-event-bus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddie4k-code%2Fexpress-based-event-bus/lists"}