{"id":21707670,"url":"https://github.com/merkez/bookshelf","last_synced_at":"2026-05-20T03:07:00.143Z","repository":{"id":75430257,"uuid":"286011724","full_name":"merkez/BookShelf","owner":"merkez","description":"example gRPC service for demonstrating evans @ mrturkmen.com","archived":false,"fork":false,"pushed_at":"2021-04-17T00:57:10.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T17:23:09.533Z","etag":null,"topics":["demonstration","evans","grpc","grpc-client","grpc-service","proto"],"latest_commit_sha":null,"homepage":"https://mrturkmen.com/gRPC-calls-with-evans/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/merkez.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":"2020-08-08T09:20:01.000Z","updated_at":"2021-04-17T00:57:13.000Z","dependencies_parsed_at":"2023-03-11T02:01:12.208Z","dependency_job_id":null,"html_url":"https://github.com/merkez/BookShelf","commit_stats":null,"previous_names":["mrturkmencom/bookshelf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/merkez/BookShelf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merkez%2FBookShelf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merkez%2FBookShelf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merkez%2FBookShelf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merkez%2FBookShelf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/merkez","download_url":"https://codeload.github.com/merkez/BookShelf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/merkez%2FBookShelf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33244091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"online","status_checked_at":"2026-05-20T02:00:07.149Z","response_time":356,"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":["demonstration","evans","grpc","grpc-client","grpc-service","proto"],"created_at":"2024-11-25T22:18:54.266Z","updated_at":"2026-05-20T03:07:00.107Z","avatar_url":"https://github.com/merkez.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BookShelf Example gRPC service \n\n[![BlogPost](https://img.shields.io/badge/BlogPost-mrturkmen.com-brightgreen)](https://mrturkmen.com/gRPC-calls-with-evans/)\n\nThis repo is created for demonstrating basic usage of [__evans__](https://github.com/ktr0731/evans) on the blog post. \n\nBlog Post : https://mrturkmen.com/gRPC-calls-with-evans/\n\nEvans: https://github.com/ktr0731/evans\n\n- [Proto File](#proto-file)\n- [Compiling Proto](#compiling-proto)\n- [Running Service](#running-service)\n- [Demo](#demo)\n\n## Proto File \n\n```proto\n// it is important to declare syntax version\nsyntax = \"proto3\";\nservice BookShelf {\n    rpc AddBook(AddBookRequest) returns (AddBookResponse) {}\n    rpc ListBook (ListBooksRequest) returns (ListBooksResponse) {}\n    rpc DelBook (DelBookRequest) returns (DelBookResponse){}\n    rpc FindBook (FindBookRequest) returns (FindBookResponse){}\n}\n\n\nmessage AddBookRequest {\n    string addedBy = 1;\n    BookInfo book = 2;\n    message BookInfo {\n        string isbn =1;\n        string name =2;\n        string author=3;\n        string addedBy=4;\n    }\n\n}\n\nmessage AddBookResponse {\n    string message = 1;\n}\nmessage ListBooksRequest {\n// no need to have anything\n// could be extended to list books based on category ...\n}\n\nmessage ListBooksResponse {\n    repeated BookInfo books =1;\n    message BookInfo {\n        string isbn =1;\n        string name =2;\n        string author=3;\n        string addedBy=4;\n    }\n}\n\nmessage  DelBookRequest {\n    string isbn =1;\n}\n\nmessage DelBookResponse {\n    string message =1;\n}\nmessage FindBookRequest {\n    string isbn =1;\n}\n\nmessage FindBookResponse {\n    Book book = 1;\n    message Book {\n        string isbn =1;\n        string name =2;\n        string author=3;\n        string addedBy=4;\n    }\n}\n\n```\n\n## Compiling proto \n\n```bash \n$ protoc -I proto/ proto/bs.proto --go_out=plugins=grpc:proto \n```\n\n## Running server \n```bash \n$ go run server/main.go \n```\n\n## Demo\n\n[![Evans Demo](http://img.youtube.com/vi/GnAUkPUXYCs/0.jpg)](http://www.youtube.com/watch?v=GnAUkPUXYCs \"BookShelf evans demo\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerkez%2Fbookshelf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmerkez%2Fbookshelf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerkez%2Fbookshelf/lists"}