Code generation based on proto-files. All proto-files are processed by prototool that depends on protoc, protoc-gen-go and protoc-gen-gql. Your machine requires the following utilities to be installed:
- Install prototool
curl -sSL \
https://github.com/uber/prototool/releases/download/v1.8.0/prototool-$(uname -s)-$(uname -m) \
-o /usr/local/bin/prototool && \
chmod +x /usr/local/bin/prototool
- Install protoc
Download the latest relsease from here.
Extract archive in a convenient place, go to root of an extracted folder and execute successively:
./configure
make
make check
sudo make install
sudo ldconfig
- Install protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go
- Install protoc-gen-gql
go install github.com/danielvladco/go-proto-gql/protoc-gen-gql
To generate code for micro-services and also schemas from proto-files use generate.sh