Skip to content

Files

24 lines (15 loc) · 1.04 KB

README.md

File metadata and controls

24 lines (15 loc) · 1.04 KB

gRPC Protobufs

NPM Version

gRPC protobuf definitions for Pretendo micro-services

Structure

Each folder contains the protobuf definitions for the server intended on receiving the requests. Meaning, for example, account contains protobuf files intended for requests to the account server

Install Language Bindings

To install

  • Go: github.com/PretendoNetwork/grpc/go - go get github.com/PretendoNetwork/grpc/go
  • JavaScript: @pretendnetwork/grpc - npm i @pretendonetwork/grpc

Build

  • Install the protobuf compiler (protoc) from here (Use the pre-compiled binaries, the protoc package in the package manager is outdated)
  • Install go
  • Run npm i to install the JS dependencies needed for building
  • Run npm run go:install to install the Go dependencies
  • Run npm run build