{"id":23393775,"url":"https://github.com/joaofbantunes/grpcsample-go","last_synced_at":"2025-04-08T16:14:12.947Z","repository":{"id":116397430,"uuid":"95597098","full_name":"joaofbantunes/grpcsample-go","owner":"joaofbantunes","description":"Stupid simple sample to try gRPC and Go (blatantly ripped from the official helloworld example).","archived":false,"fork":false,"pushed_at":"2017-06-29T18:00:04.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T12:41:13.426Z","etag":null,"topics":["golang","grpc","grpc-go"],"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/joaofbantunes.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":"2017-06-27T20:18:44.000Z","updated_at":"2017-06-27T20:25:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"811759f8-01bb-4680-8ab6-8eb920ea13c2","html_url":"https://github.com/joaofbantunes/grpcsample-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaofbantunes%2Fgrpcsample-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaofbantunes%2Fgrpcsample-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaofbantunes%2Fgrpcsample-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaofbantunes%2Fgrpcsample-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joaofbantunes","download_url":"https://codeload.github.com/joaofbantunes/grpcsample-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247878021,"owners_count":21011158,"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":["golang","grpc","grpc-go"],"created_at":"2024-12-22T05:43:39.277Z","updated_at":"2025-04-08T16:14:12.942Z","avatar_url":"https://github.com/joaofbantunes.png","language":"Go","readme":"# About\nStupid simple sample to try gRPC and Go (blatantly ripped from the official [helloworld](https://github.com/grpc/grpc-go/tree/master/examples/helloworld) example).\n\nThis will be used as a server (although there's a client here for testing), and there's a C# client [here](https://github.com/joaofbantunes/grpcsample-dotnet).\n\nConsider I'm on Windows for the next steps\n\n# Steps I took (setup)\n1. Installed Protobuf compiler (protoc)\n2. Installed Go :)\n3. Set GOPATH environment variable to where the projects will be kept\n4. Installed gRPC for Go `go get google.golang.org/grpc`\n5. Installed the Go code generator plugin `go get -u github.com/golang/protobuf/protoc-gen-go` (it will be on the GOPATH and protoc is able to find it)\n\n\n# Steps I took (development)\n1. Created the project folder under src, under GOPATH\n2. Created the service definition (servicedef folder), consisting on the messages to pass (IncrementRequest and IncrementResponse) and the available operations (service Counter.Increment)\n3. Generated the Go files from the proto definition running the following command on the root of the project  `protoc --go_out=plugins=grpc:generated servicedef/*.proto`\n4. Installed the generated package on my GOPATH by running the following command (still on the project root) `go install ./generated/servicedef`\n5. Implemented the server on server\\main.go and the client on client\\main.go\n6. On a command window ran the server `go run server\\main.go`\n7. On another command window ran the client `go run client\\main.go`\n8. Stuff works, YAY!\n\n# Notes\nFollowed parts of the [gRPC Go Quick Start](http://www.grpc.io/docs/quickstart/go.html) and the [helloworld](https://github.com/grpc/grpc-go/tree/master/examples/helloworld) example.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaofbantunes%2Fgrpcsample-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaofbantunes%2Fgrpcsample-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaofbantunes%2Fgrpcsample-go/lists"}