{"id":23748037,"url":"https://github.com/indiependente/gw-example","last_synced_at":"2026-03-10T13:30:20.190Z","repository":{"id":73262615,"uuid":"202394525","full_name":"indiependente/gw-example","owner":"indiependente","description":"gRPC Gateway example Go project","archived":false,"fork":false,"pushed_at":"2023-02-25T19:50:46.000Z","size":13391,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-31T14:58:51.371Z","etag":null,"topics":["go","grpc","grpc-gateway","grpc-go"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/indiependente.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-14T17:16:07.000Z","updated_at":"2023-02-25T19:50:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb4af77b-d9b1-4f91-a9a0-72d097dd84b6","html_url":"https://github.com/indiependente/gw-example","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/indiependente%2Fgw-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiependente%2Fgw-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiependente%2Fgw-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiependente%2Fgw-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indiependente","download_url":"https://codeload.github.com/indiependente/gw-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239907782,"owners_count":19716687,"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":["go","grpc","grpc-gateway","grpc-go"],"created_at":"2024-12-31T14:58:53.592Z","updated_at":"2026-03-10T13:30:20.108Z","avatar_url":"https://github.com/indiependente.png","language":"Go","readme":"# GW Example\n\n## gRPC Gateway example project\n\n### What is it?\n\n___\nThis is a simple Echo\u0026Reverse gRPC Server, which uses [gRPC-gateway](https://grpc-ecosystem.github.io/grpc-gateway/) to communicate also via REST.\n\n### Usage\n\nMake sure you have all the dependencies:\n\n```bash\nbrew install golang\nbrew install buf\n```\n\nRun it on your machine:\n\n```bash\nmake build\n./bin/service\n```\n\nIf you want to use *REST*:\n\nYou just need a standard HTTP client to invoke the **echo** endpoint\n\n```bash\n$ curl localhost:8080/v1/example/echo -d '{\"value\":\"Hello gRPC!\"}'\n{\"value\":\"Hello gRPC\"}\n```\n\nOr the **reverse** endpoint:\n\n```bash\n$ curl localhost:8080/v1/example/reverse -d '{\"value\":\"Hello gRPC!\"}'\n   {\"value\":\"!CPRg olleH\"}\n```\n\nIf you want to use *gRPC*:\n\nThis will build the client executable and let it communicate to the server via gRPC.\nThe client is cli application that currently supports the `!echo` and `!reverse` commands (use `!quit` to exit).\n\n```bash\n$ make build-client\n$ ./bin/client\n2019/08/14 18:13:31 Connecting to gRPC server @ 0.0.0.0:9090\nCommands: !echo, !reverse, !quit\ncmd\u003e !echo\nType a message \u003e Hello World\n2019/08/14 18:13:37 client \u003e\u003e\u003e Hello World\n2019/08/14 18:13:37 server \u003e\u003e\u003e Hello World\ncmd\u003e !reverse\nType a message \u003e Hello World\n2019/08/14 18:13:44 client \u003e\u003e\u003e Hello World\n2019/08/14 18:13:44 server \u003e\u003e\u003e dlroW olleH\ncmd\u003e !quit\n2019/08/14 18:13:48 Client shutting down...\n```\n\n### Usage with Docker\n\n```bash\nmake docker\ndocker-compose up\n```\n\nUse a gRPC or HTTP client as showed above to interact with the server.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findiependente%2Fgw-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findiependente%2Fgw-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findiependente%2Fgw-example/lists"}