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:
- 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
-
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. -
Install Go: The Go programming language is needed to run the Go plugin for Protobuf. You can download it from the official Go website.
-
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.
-
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"
- 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