{"id":27428072,"url":"https://github.com/arthur199212/microservices-demo","last_synced_at":"2026-05-08T01:43:37.329Z","repository":{"id":192629667,"uuid":"592736867","full_name":"Arthur199212/microservices-demo","owner":"Arthur199212","description":"Microservices demo app built using k8s and gRPC.","archived":false,"fork":false,"pushed_at":"2023-10-08T18:54:43.000Z","size":349,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T13:17:23.764Z","etag":null,"topics":["bufbuild","fiber","go","golang","grpc","k8s","kubectl","kubernetes","microservices","minikube","skaffold"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Arthur199212.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":".github/CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2023-01-24T12:29:00.000Z","updated_at":"2024-05-29T12:33:19.000Z","dependencies_parsed_at":"2023-09-29T08:42:17.268Z","dependency_job_id":null,"html_url":"https://github.com/Arthur199212/microservices-demo","commit_stats":null,"previous_names":["arthur199212/microservices-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur199212%2Fmicroservices-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur199212%2Fmicroservices-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur199212%2Fmicroservices-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arthur199212%2Fmicroservices-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arthur199212","download_url":"https://codeload.github.com/Arthur199212/microservices-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886333,"owners_count":21177645,"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":["bufbuild","fiber","go","golang","grpc","k8s","kubectl","kubernetes","microservices","minikube","skaffold"],"created_at":"2025-04-14T13:17:32.551Z","updated_at":"2025-10-23T02:37:37.127Z","avatar_url":"https://github.com/Arthur199212.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microservices Demo Application\n\n[![CI](https://github.com/Arthur199212/microservices-demo/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/Arthur199212/microservices-demo/actions/workflows/ci.yml)\n\n| Service                           | Description                                                                                                                                 |\n| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |\n| [api-gateway](./src/api_gateway/) | Used as an entry point for clients to communicate with the rest of the application. It's built as RESP API and uses JSON for communication. |\n| [cart](./src/products/)           | Stores the products and their quantity in the shopping cart by sessionId and allowes to retrieve them.                                      |\n| [checkout](./src/products/)       | Retrieves user cart, prepares order and charges user provided card.                                                                         |\n| [currency](./src/products/)       | Provides a list of supported currencies and makes a conversion from one currency to another.                                                |\n| [payment](./src/products/)        | Charges provided debet/credit card with the given amount (mock) and return a transaction ID for reference.                                  |\n| [products](./src/products/)       | Allows getting list of products and individual products by ID.                                                                              |\n| [shipping](./src/products/)       | Provides shipping cost estimates based on the shopping cart (mock). Ships items to the given address and returns `tracingId` (mock).        |\n\n## How To Run\n\n### Prerequisites\n\n- Docker for Desktop\n- `kubectl`\n- `skaffold`\n- Minikube / kind\n\n### Local Cluster\n\n1. Launch a local k8s cluster `minikube start --cpus='2' --memory='3.9g'` or `kind create cluster`.\n1. Verify the cluster is operating `minikube status` and it's possible to connect to control plane `kubectl get nodes`.\n1. Run `skaffold run` or `skaffold dev`. This will build and deploy the application. If `skaffold dev` is used it will rebuild the images automatically as you change the code.\n1. Run `kubectl get pods` to verify that the Pods are operating well.\n1. Run `kubectl port-forward svc/api-gateway-service 8080:8080` to forward a port to the api-gateway service.\n1. Use `localhost:8080` to access the api-gateway service.\n\n### Cleanup\n\n1. Use `skaffold delete` if you used `skaffold run` or just stop `skaffold dev` by pressing `ctrl+c`.\n1. Run `minikube stop` to stop Minikube cluster or `minikube delete` to delete it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur199212%2Fmicroservices-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthur199212%2Fmicroservices-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur199212%2Fmicroservices-demo/lists"}