Skip to content

neandermenezes/gRPC-Upvote-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC-Upvote-Service

Upvote service using gRPC and golang for Klever

Mongo atlas was used in this application

protobuf messages:

- Post: id, author_name, title, content, like_count
- PostId: id,

rpc methods:

- rpc CreatePost (Post) returns (PostId);
- rpc ReadPost (PostId) returns (Post);
- rpc UpdatePost (Post) returns (google.protobuf.Empty);
- rpc DeletePost (PostId) returns (google.protobuf.Empty);
- rpc ListPosts (google.protobuf.Empty) returns (stream Post);
- rpc UpvotePost (PostId) returns (google.protobuf.Empty); 

How to use this repo

clone the repository
$ make build
$ ./bin/server
$ ./bin/client

About

Upvote service using gRPC and golang for Klever

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published