{"id":19568805,"url":"https://github.com/thegeorgenikhil/basic-go-grpc","last_synced_at":"2026-04-12T23:52:29.149Z","repository":{"id":130411114,"uuid":"571576196","full_name":"thegeorgenikhil/basic-go-grpc","owner":"thegeorgenikhil","description":"This is a basic gRPC server and client written in Go with all 4 types of communication patterns supported by gRPC.","archived":false,"fork":false,"pushed_at":"2022-11-28T13:24:59.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T05:02:06.273Z","etag":null,"topics":["go","grpc"],"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/thegeorgenikhil.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":"2022-11-28T12:37:43.000Z","updated_at":"2023-03-04T08:38:08.000Z","dependencies_parsed_at":"2024-02-04T14:42:00.489Z","dependency_job_id":null,"html_url":"https://github.com/thegeorgenikhil/basic-go-grpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thegeorgenikhil/basic-go-grpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegeorgenikhil%2Fbasic-go-grpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegeorgenikhil%2Fbasic-go-grpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegeorgenikhil%2Fbasic-go-grpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegeorgenikhil%2Fbasic-go-grpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thegeorgenikhil","download_url":"https://codeload.github.com/thegeorgenikhil/basic-go-grpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thegeorgenikhil%2Fbasic-go-grpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271962944,"owners_count":24850597,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"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":["go","grpc"],"created_at":"2024-11-11T06:06:22.920Z","updated_at":"2026-04-12T23:52:24.100Z","avatar_url":"https://github.com/thegeorgenikhil.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Go gRPC Server and Client\n\nThis is a basic gRPC server and client written in Go. It is based on the [gRPC Quickstart](https://grpc.io/docs/quickstart/go.html) and [gRPC Basics: Go](https://grpc.io/docs/tutorials/basic/go.html) tutorials.\n\nWe have implemented a simple gRPC server and client with the following functionality:\n- simple RPC\n- server-side streaming RPC\n- client-side streaming RPC\n- bidirectional streaming RPC\n\n# Setting up a gRPC-Go project\n1. Create a new directory for your project and cd into it\n\n```bash\nmkdir basic-go-grpc\ncd basic-go-grpc\nmkdir client server proto\n```\n\n2. Installing the gRPC Go plugin\n\n```bash\ngo install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28\n\ngo install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2\n\nexport PATH=\"$PATH:$(go env GOPATH)/bin\"\n```\n\n3. Initialize a Go module\n\n```bash\ngo mod init github.com/your_username/basic-go-grpc\n\ngo mod tidy\n```\n\n4. Create the proto file with the required services and messages in the proto directory\n\n5. Generate .pb.go files from the proto file\n\n```bash\nprotoc --go_out=. --go_opt=paths=source_relative \\ --go-grpc_out=. --go-grpc_opt=paths=source_relative \\ proto/greet.proto\n```\n\n6. Create the server and client directories and create the main.go files with necessary controllers and services\n\n\n# Running the application\n\n1. Install the dependencies\n\n```bash\ngo mod tidy\n```\n\n2. Run the server\n\n```bash\ngo run server/main.go\n```\n\n3. Run the client\n\n```bash\ngo run client/main.go\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegeorgenikhil%2Fbasic-go-grpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthegeorgenikhil%2Fbasic-go-grpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthegeorgenikhil%2Fbasic-go-grpc/lists"}