A gRPC service to help manage RSVPs to an event. This is a little side project to help further our knowledge of Go and get exposure to gRPC.
- Make sure that you have postgres installed
- Run
createdb rsvp-dev
to get the db up. - Setup the needed go packages by running
go get google.golang.org/grpc
andgo get -u github.com/golang/protobuf/{proto,protoc-gen-go}
. These packages will be needed anytime you modify the /proto/RSVP.proto file. - Also, run
go get
to get all the other packages needed. - Change directories to /proto using
cd proto
and then runprotoc --go_out=plugins=grpc:. RSVP.proto
to generate RSVP.pb.go (already included in the repo). - Change to the root directory of the repo
cd ..
and runmake db
to get the db all setup. - Run
go run main.go
to start the service. The service is now running on port 8000!
Right now the app only has testing on the service layer and not around the actual gRPC part. Testing around the gRPC part at some point would be nice.
- Change into the services directory
cd services
. - Run the tests using
go test
.