{"id":20297456,"url":"https://github.com/geggleto/node-microservice-example","last_synced_at":"2026-06-06T12:31:10.534Z","repository":{"id":55725575,"uuid":"272296565","full_name":"geggleto/node-microservice-example","owner":"geggleto","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-12T21:42:35.000Z","size":87,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T05:44:37.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/geggleto.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}},"created_at":"2020-06-14T22:53:54.000Z","updated_at":"2020-10-27T13:01:27.000Z","dependencies_parsed_at":"2022-08-15T06:40:18.272Z","dependency_job_id":null,"html_url":"https://github.com/geggleto/node-microservice-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/geggleto/node-microservice-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geggleto%2Fnode-microservice-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geggleto%2Fnode-microservice-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geggleto%2Fnode-microservice-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geggleto%2Fnode-microservice-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geggleto","download_url":"https://codeload.github.com/geggleto/node-microservice-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geggleto%2Fnode-microservice-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33983046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-06T02:00:07.033Z","response_time":107,"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":[],"created_at":"2024-11-14T15:47:37.918Z","updated_at":"2026-06-06T12:31:10.477Z","avatar_url":"https://github.com/geggleto.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example Account Microservice\n\nThis project is an example of how to build a HTTP based microservice using basic event sourcing. \n\nUsage using Docker using Docker-Compose.\n\n## Usage\n\n`yarn go` calls docker-compose build/up\n\nDocker configured to use Nodemon to listen for local changes so you don't need to rebuild. Only time you need to rebuild\nis when you are adding dependencies.\n\n## End-Points\n\nThe app defines 2 end-points\n\n- `GET /account/:accountId`\n\n- `POST /account`\n\nAn account is represented by 2 fields, `accountId`, `email`. It is easily extensible.\n\n## Folder structure\n\nThe app exposes 4 main categories:\n\n- Aggregates - Defines entities/data\n- Handlers - Handles HTTP layer traffic\n- Repositories - Handles Storage operations\n- Services - Handles data-fetch operations\n\nAggregates are basic models of data, currently theres an example in Account that just reduces all values into a projection.\nIt would be better to apply events, each event type has a mapping to a function that applies the event to the aggregate.\n\nHandlers return an Express Handler function while wrapping its dependencies. It would be better to have a dependency \ncontainer but that's not required for so little end-points.\n\n## Insomnia Collection\n\nSee `Insomnia_*.json` for workspaces.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeggleto%2Fnode-microservice-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeggleto%2Fnode-microservice-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeggleto%2Fnode-microservice-example/lists"}