https://github.com/walkerrandolphsmith/grpc-basics
https://github.com/walkerrandolphsmith/grpc-basics
go golang grpc
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/walkerrandolphsmith/grpc-basics
- Owner: walkerrandolphsmith
- Created: 2019-05-15T01:52:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-15T12:57:20.000Z (almost 7 years ago)
- Last Synced: 2024-05-01T23:41:57.989Z (almost 2 years ago)
- Topics: go, golang, grpc
- Language: Go
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started
gRPC is a Remote Procedure Call (RPC) framework based on protobufs and HTTP/2. We want to generate a gRPC API and Rest API from a single protobuf `.proto` file compiled with a Protocol Buffer compiler, `protoc`.
## Installation
1) Install Golang
2) Include `$GOPATH/bin` in `$PATH`
3) Install protobuf
4) Install grpc-gateway packages
We need to first install the compiler
```
brew install protobuf
```
We also need the grpc-gateway packages
```
go get -u github.com/golang/protobuf/protoc-gen-go
```
## Code Generation
```
./ctl.sh gen stub
```
## Run
```
echo_server &
echo_client "Alejandro"
```