{"id":18244311,"url":"https://github.com/stackb/grpc-fortune-teller","last_synced_at":"2026-04-26T12:31:29.970Z","repository":{"id":91601591,"uuid":"131667114","full_name":"stackb/grpc-fortune-teller","owner":"stackb","description":"Sample gRPC application","archived":false,"fork":false,"pushed_at":"2018-05-01T02:33:22.000Z","size":8,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-03T12:32:50.069Z","etag":null,"topics":["grpc"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/stackb.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":"2018-05-01T02:06:39.000Z","updated_at":"2020-11-27T19:49:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e18f3cad-d044-4d08-a8e3-3e25a089b8e3","html_url":"https://github.com/stackb/grpc-fortune-teller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stackb/grpc-fortune-teller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fgrpc-fortune-teller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fgrpc-fortune-teller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fgrpc-fortune-teller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fgrpc-fortune-teller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackb","download_url":"https://codeload.github.com/stackb/grpc-fortune-teller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackb%2Fgrpc-fortune-teller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["grpc"],"created_at":"2024-11-05T09:16:09.405Z","updated_at":"2026-04-26T12:31:29.954Z","avatar_url":"https://github.com/stackb.png","language":"Python","readme":"\n# fortune-teller\n\nThis repository contains a sample gRPC application built with bazel.  It was\ninitially built as an example of how to use grpc with\n[nginx-ingress](https://github.com/kubernetes/ingress-nginx/docs/grpc). \n\n## Build\n\n```\n$ bazel build //app:fortune \nTarget //app:fortune up-to-date:\n  bazel-bin/app/linux_amd64_static_pure_stripped/fortune\n```\n\n## Run\n\n```sh\n$ bazel run //app:image\nLoaded image ID: sha256:aa597c897c873116fcbfccafecf5ab0f6f4178a05e4a00c8e79de91ac0d2e9e7\nTagging aa597c897c873116fcbfccafecf5ab0f6f4178a05e4a00c8e79de91ac0d2e9e7 as bazel/app:image\n```\n\n```sh\n$ docker run bazel/app:image\n2018/05/01 02:13:43 Restored /tmp/fortune-teller/usr/share/games/fortunes/fortunes.dat\n2018/05/01 02:13:43 Restored /tmp/fortune-teller/usr/share/games/fortunes/literature\n2018/05/01 02:13:43 Restored /tmp/fortune-teller/usr/share/games/fortunes/literature.dat\n2018/05/01 02:13:43 Restored /tmp/fortune-teller/usr/share/games/fortunes/riddles\n2018/05/01 02:13:43 Restored /tmp/fortune-teller/usr/share/games/fortunes/riddles.dat\n2018/05/01 02:13:43 Restored /tmp/fortune-teller/usr/share/games/fortunes/fortunes\n2018/05/01 02:13:43 Assets restored to /tmp/fortune-teller\n2018/05/01 02:13:43 Listening for gRPC requests at 50051\n```\n\n## Invoke\n\n```sh\n$ grpcurl -plaintext localhost:50051 build.stack.fortune.FortuneTeller/Predict\n{\n  \"message\": \"Whenever the literary German dives into a sentence, that is the last\\nyou are going to see of him until he emerges on the other side of his\\nAtlantic with his verb in his mouth.\\n\\t\\t-- Mark Twain \\\"A Connecticut Yankee in King Arthur's Court\\\"\"\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackb%2Fgrpc-fortune-teller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackb%2Fgrpc-fortune-teller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackb%2Fgrpc-fortune-teller/lists"}