This project exposes both grpc as a rest api based on that grpc services using github.com/grpc-ecosystem/grpc-gateway.
##Running the project
To run this project first start the postgres server:
docker-compose up -d
Then download libraries and build the binaries:
make vendor
make build
Then you can start the server:
bin/server
In another terminal you can use the client:
bin/client user create -n "Stijn"
To build the proto files you should checkout grpc-gateway in your go path
cd $GOPATH/src/github.com/grpc-ecosystem
git clone https://github.com/grpc-ecosystem/grpc-gateway.git
This is because you need the proto annotations in that project, these are ignored by go 1.14.x if you check them out in the vendor folder.
You also need to install the protoc tool.
After that you can run:
make protoc