On Mac:
$ brew install protobuf --devel
Run PostgreSQL Docker container:
$ make run-pg
$ psql postgres://postgres:password@localhost:5432
Create grpc_pg_todo
database:
CREATE DATABASE grpc_pg_todo;
Install gRPC tools:
$ go get google.golang.org/grpc
$ go get -a github.com/golang/protobuf/protoc-gen-go
Build:
$ make deps
$ make generate-go
$ make build
Start server & client:
$ cd go
$ bin/server &
$ bin/client
Install gRPC tools:
$ gem install grpc
$ git clone https://github.com/grpc/grpc.git $REPO
$ cd $REPO
$ make grpc_ruby_plugin
$ cp bins/opt/grpc_ruby_plugin /usr/local/bin/
Build:
$ make generate-ruby
$ cd ruby
$ bundle install
Start server & client:
$ bundle exec bin/server &
$ bundle exec bin/client