{"id":26784827,"url":"https://github.com/ddlees/microservices","last_synced_at":"2026-02-02T07:04:31.785Z","repository":{"id":46022206,"uuid":"423888243","full_name":"ddlees/microservices","owner":"ddlees","description":"Microservices Example w/ Bazel and Skaffold","archived":false,"fork":false,"pushed_at":"2021-11-19T15:53:14.000Z","size":158,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T10:35:05.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddlees.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-02T15:01:08.000Z","updated_at":"2021-11-02T19:45:42.000Z","dependencies_parsed_at":"2022-09-15T12:11:05.833Z","dependency_job_id":null,"html_url":"https://github.com/ddlees/microservices","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ddlees/microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddlees%2Fmicroservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddlees%2Fmicroservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddlees%2Fmicroservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddlees%2Fmicroservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddlees","download_url":"https://codeload.github.com/ddlees/microservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddlees%2Fmicroservices/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262685443,"owners_count":23348420,"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":"2025-03-29T10:32:36.608Z","updated_at":"2026-02-02T07:04:26.760Z","avatar_url":"https://github.com/ddlees.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microservices Example w/ [Bazel] and [Skaffold]\n\n### Prerequisites\n\n\u003cul style=\"list-style-position: inside;\"\u003e\n\u003cli\u003e\u003ca href=\"https://bazel.build\"\u003eBazel\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://skaffold.dev\"\u003eSkaffold\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://docker.com/get-started\"\u003eDocker\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://kubernetes.io/docs/reference/kubectl/overview/\"\u003eKubectl\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://golang.org\"\u003eGo \u003cem\u003e\u003csmall\u003e(optional)\u003c/small\u003e\u003c/em\u003e\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://nodejs.org\"\u003eNodeJS \u003cem\u003e\u003csmall\u003e(optional)\u003c/small\u003e\u003c/em\u003e\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://yarnpkg.com\"\u003eYarn \u003cem\u003e\u003csmall\u003e(optional)\u003c/small\u003e\u003c/em\u003e\u003c/a\u003e\u003c/li\u003e\n\u003cli style=\"list-style: none;\"\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eA \u003ca href=\"kubernetes.io\"\u003eKubernetes\u003c/a\u003e Cluster\u003c/summary\u003e\n\n#### Choose a Development Cluster\n\n-   [Docker Desktop](https://www.docker.com/products/docker-desktop) \u003csmall\u003e_(Mac OS and Windows)_\u003c/small\u003e\n    -   Download and install Docker Desktop for your platform\n    -   Go to `Preferences \u003e Kubernetes` and select `Enable Kubernetes`\n-   [kind](https://kind.sigs.k8s.io/)\n-   [microk8s](https://microk8s.io/)\n-   [minikube](https://minikube.sigs.k8s.io/docs/)\n-   [k3s](https://k3s.io/)\n-   [k3d](https://k3d.io/)\n-   [kubeadm](https://kubernetes.io/docs/reference/setup-tools/kubeadm/) \u003csmall\u003e_(the hard way)_\u003c/small\u003e\n\n---\n\n**Note:** All of these options have guides to setup a local cluster; however Skaffold does not prevent you\nfrom  connecting to a remote Kubernetes cluster if you wish to do so. \n\n\u003c/details\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\n## Local Development\n\n#### Building w/ Bazel\n\nThis command will build everything in the project including all the container images and binaries capable of running on\nthe host system.\n\n``` bash\nbazel build //...\n```\n\n### Building w/ Skaffold\n\nThis command will build and tag only the container images declared in [skaffold.yaml](./skaffold.yaml).\n\n``` bash\nskaffold build\n```\n\n## Run the API w/ Bazel (no containers)\n\n``` bash\nbazel run api\n```\n\nThe API serves a single endpoint: http://localhost:8080/api/v1/greeting\n\n## Run the UI w/ Bazel (no containers)\n\n``` bash\nbazel run ui\n```\n\nThe UI is served at http://localhost:3000\n\n\u003e Note: The UI has a dependency on the API and will surface a network error\n\n## Run the API and UI on Kubernetes w/ Skaffold\n\n``` bash\nskaffold dev\n```\n\nThe UI is served at http://localhost:3000 and will connect to the API using [Kubernetes Service Discovery](https://github.com/kubernetes/dns/blob/master/docs/specification.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddlees%2Fmicroservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddlees%2Fmicroservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddlees%2Fmicroservices/lists"}