{"id":16827193,"url":"https://github.com/jeffhollan/grpc-sample-node","last_synced_at":"2026-04-17T07:32:32.969Z","repository":{"id":142344467,"uuid":"431639351","full_name":"jeffhollan/grpc-sample-node","owner":"jeffhollan","description":"Node application of a gRPC client and server, built for Azure Container Apps","archived":false,"fork":false,"pushed_at":"2021-11-25T16:39:07.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T15:08:19.481Z","etag":null,"topics":["azure","azure-container-apps","grpc"],"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/jeffhollan.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}},"created_at":"2021-11-24T22:01:08.000Z","updated_at":"2021-11-29T20:45:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"a78e2265-a1ed-457c-85e2-d69e1e7b4837","html_url":"https://github.com/jeffhollan/grpc-sample-node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeffhollan/grpc-sample-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffhollan","download_url":"https://codeload.github.com/jeffhollan/grpc-sample-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31919983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["azure","azure-container-apps","grpc"],"created_at":"2024-10-13T11:19:57.358Z","updated_at":"2026-04-17T07:32:32.943Z","avatar_url":"https://github.com/jeffhollan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gRPC Sample : Node / JavaScript\n\n### View this sample in other languages\n| [C#](https://github.com/jeffhollan/grpc-sample-dotnet) | [Go](https://github.com/jeffhollan/grpc-sample-go) | [Java](https://github.com/jeffhollan/grpc-sample-java) | [JavaScript](https://github.com/jeffhollan/grpc-sample-node) | [Python](https://github.com/jeffhollan/grpc-sample-python) |\n| ---  | --- | --- | --- | --- |\n\n\nThe following is a sample of a gRPC client calling another container running gRPC server to execute a `SayHello` call.  The solution runs on Azure Container Apps.\n\n## Deploy the sample\n### Azure CLI\n\n```bash\nRESOURCE_GROUP=\"grpc-sample\"\nLOCATION=\"canadacentral\"\nLOG_ANALYTICS_WORKSPACE=\"aca-logs\"\nACA_ENVIRONMENT=\"aca-env\"\n\naz extension add -y \\\n  --source https://workerappscliextension.blob.core.windows.net/azure-cli-extension/containerapp-0.2.0-py2.py3-none-any.whl\naz provider register --namespace Microsoft.Web\n\naz group create \\\n  --name $RESOURCE_GROUP \\\n  --location \"$LOCATION\"\n\naz monitor log-analytics workspace create \\\n  --resource-group $RESOURCE_GROUP \\\n  --workspace-name $LOG_ANALYTICS_WORKSPACE\n\nLOG_ANALYTICS_WORKSPACE_CLIENT_ID=`az monitor log-analytics workspace show --query customerId -g $RESOURCE_GROUP -n $LOG_ANALYTICS_WORKSPACE --out tsv`\nLOG_ANALYTICS_WORKSPACE_CLIENT_SECRET=`az monitor log-analytics workspace get-shared-keys --query primarySharedKey -g $RESOURCE_GROUP -n $LOG_ANALYTICS_WORKSPACE --out tsv`\n\n# Create the Container Apps Environment\naz containerapp env create \\\n  --name $ACA_ENVIRONMENT \\\n  --resource-group $RESOURCE_GROUP \\\n  --logs-workspace-id $LOG_ANALYTICS_WORKSPACE_CLIENT_ID \\\n  --logs-workspace-key $LOG_ANALYTICS_WORKSPACE_CLIENT_SECRET \\\n  --location \"$LOCATION\"\n\n# Create the gRPC backend internal service\naz containerapp create \\\n  --name grpc-backend \\\n  --resource-group $RESOURCE_GROUP \\\n  --environment $ACA_ENVIRONMENT \\\n  --image ghcr.io/jeffhollan/grpc-sample-node/grpc-backend:main \\\n  --ingress 'internal' \\\n  --target-port 50051 \\\n  --transport 'http2'\n\nGRPC_SERVER_ADDRESS=$(az containerapp show \\\n  --resource-group $RESOURCE_GROUP \\\n  --name grpc-backend \\\n  --query configuration.ingress.fqdn -otsv)\n\n# Create the HTTPS frontend gRPC client container\naz containerapp create \\\n  --name https-frontend \\\n  --resource-group $RESOURCE_GROUP \\\n  --environment $ACA_ENVIRONMENT \\\n  --image ghcr.io/jeffhollan/grpc-sample-node/https-frontend:main \\\n  --environment-variables GRPC_SERVER_ADDRESS=$GRPC_SERVER_ADDRESS':443' \\\n  --target-port 8050 \\\n  --ingress 'external' \\\n  --query configuration.ingress.fqdn\n```\n\n### Try the solution\n\nAfter deploying, get the FQDN of the https-frontend and browse to it. It will call the gRPC backend (via gRPC) and return a message to the client.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffhollan%2Fgrpc-sample-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffhollan%2Fgrpc-sample-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffhollan%2Fgrpc-sample-node/lists"}