Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.33 KB

SETUP.md

File metadata and controls

47 lines (33 loc) · 1.33 KB

Workshop 17 - Setup

1 - Installation

For this workshop, you will need the following tools:

  • go - The programming language you'll use during the workshop
  • protoc - The protobuf compiler

You can install both of them using the following commands respectively:

go

# Will download go binaries
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz

# Will extract and move binaries into GOPATH
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz

Then, open your .zshrc or .bashrc file and append the following line at the end:

export PATH=$PATH:/usr/local/go/bin:$(go env GOPATH)/bin

protoc

protoc is the protocol buffer compiler, you can install it with your package manager:

  • under fedora: sudo dnf install protobuf-compiler
  • under ubuntu: sudo apt install protobuf-compiler

or by following the instructions given here.

2 - Workshop

Create a folder for this workshop and run the following command inside to initialize the go project:

go mod init grpc-poc

Then run:

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

Go back to the exercise