Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

dtan4/grpc-pg-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TODO application sample w/ gRPC + PostgreSQL

How to develop

Protocol Buffers

On Mac:

$ brew install protobuf --devel

PostgreSQL

Run PostgreSQL Docker container:

$ make run-pg
$ psql postgres://postgres:password@localhost:5432

Create grpc_pg_todo database:

CREATE DATABASE grpc_pg_todo;

Golang

grpc / gRPC Basics - Go

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

Ruby

grpc / gRPC Basics - Ruby

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

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published