{"id":16112892,"url":"https://github.com/jonathanmdr/grpc","last_synced_at":"2026-05-02T06:40:37.905Z","repository":{"id":99788172,"uuid":"563043869","full_name":"jonathanmdr/gRPC","owner":"jonathanmdr","description":"Example of gRPC with Go","archived":false,"fork":false,"pushed_at":"2022-11-08T19:16:08.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T08:27:48.715Z","etag":null,"topics":["go","golang","grpc","grpc-go","grpc-server","protobuf3","protobuffer","protocol-buffers","rpc","rpc-framework","rpc-server"],"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/jonathanmdr.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-07T19:43:31.000Z","updated_at":"2024-04-22T06:43:45.000Z","dependencies_parsed_at":"2023-08-01T02:16:45.429Z","dependency_job_id":null,"html_url":"https://github.com/jonathanmdr/gRPC","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"792e2a1eb90005858d7983564be9091a4e154268"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jonathanmdr/gRPC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanmdr%2FgRPC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanmdr%2FgRPC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanmdr%2FgRPC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanmdr%2FgRPC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanmdr","download_url":"https://codeload.github.com/jonathanmdr/gRPC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanmdr%2FgRPC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32525896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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","golang","grpc","grpc-go","grpc-server","protobuf3","protobuffer","protocol-buffers","rpc","rpc-framework","rpc-server"],"created_at":"2024-10-09T20:09:33.477Z","updated_at":"2026-05-02T06:40:37.891Z","avatar_url":"https://github.com/jonathanmdr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gRPC\nExample of gRPC with Go\n\n## Compiling `.proto` files:\n---\n\u003e `--go_out` specifies out directory for generation all entities \"_messages of `.proto` file_\"\n\u003e\n\u003e `--go-grpc_out` specifies out directory for generation all gRPC code \"_services of `.proto` file_\"\n\u003e\n\u003e `latest param` specifies directory for get `.proto` file\n```sh\nprotoc --go_out=. --go-grpc_out=. proto/course_category.proto\n```\n\n## Installing client gRPC:\n---\n\u003e The client used for tests is named [evans](https://github.com/ktr0731/evans)\n```sh\n# MacOS installation using brew\nbrew tap ktr0731/evans\nbrew install evans\n```\n\n## Creating SQLite database:\n---\n```sh\n# For connect on database\nsqlite3 db.sqlite\n```\n```sql\n-- For create table categories\ncreate table categories(\n    id string primary key,\n    name string,\n    description string\n);\n\n-- For create table courses\ncreate table courses(\n    id string primary key,\n    name string,\n    description string,\n    category_id string,\n    foreign key (category_id) references categories(id)\n);\n```\n\n## Running server:\n---\n```sh\ngo run cmd/grpcServer/main.go\n```\n\n## Running client:\n---\n\u003e By default the evans client listens on TCP port 50051, you don't need to specify if you are using this port\n```sh\nevans -r repl\n```\n\n## Select gRPC service on client:\n---\n\u003e Needs to start client before selecting gRPC service\n\u003e\n\u003e `first param` is the gRPC service name\n```sh\n# If your function uses stream mode, for stop this use 'Ctrl + D'\nservice CategoryService\n```\n\n## Calling gRPC service function on client:\n---\n\u003e Needs to start client before selecting gRPC service\n\u003e\n\u003e `first param` is the function name\n```sh\ncall CreateCategory\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanmdr%2Fgrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanmdr%2Fgrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanmdr%2Fgrpc/lists"}