Categorygithub.com/zumosik/grpc_chat_protos
module
0.0.0-20240427143429-11ee10352536
Repository: https://github.com/zumosik/grpc_chat_protos.git
Documentation: pkg.go.dev

# README

Chat prortos

GRPC proto files for this project

Installation

Follow these steps to install the necessary tools to run the Makefile:

  1. Install GNU Make: This is the tool that interprets the Makefile and runs the commands. On a Linux machine, you can install it using the package manager. For example, on Ubuntu, you can use the following command in your terminal:
sudo apt-get install make
  1. Install Protobuf Compiler (protoc): This is used to generate code from .proto files. You can download pre-compiled binaries from the protobuf GitHub releases page.

  2. Install Go: The Go programming language is needed to run the Go plugin for Protobuf. You can download it from the official Go website.

  3. Install Node.js and npm: These are needed to run the JavaScript and gRPC-Web plugins for Protobuf. You can download Node.js, which includes npm, from the official Node.js website.

  4. Install Go support for Protobuf: This is a plugin for the Protobuf compiler that generates Go code. You can install it with the following commands in your terminal:

go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]

# update your path if you havent
export PATH="$PATH:$(go env GOPATH)/bin"

More about protoc for Go here

  1. Install JavaScript and gRPC-Web support for Protobuf: These are plugins for the Protobuf compiler that generate JavaScript and gRPC-Web code. You can install them following the instructions on the gRPC-Web GitHub page.

How to generate file?

  • for npm generation run
make npm
  • for go generation run
make go
  • for generation of all files run
make

# Packages

No description provided by the author