Skip to content

apriorit/Microservices-GRPC-GraphQL

Repository files navigation

How to install utils for code generation

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:

  1. 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
  1. 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
  1. Install protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go
  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published