Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nursyah21/go-usermgmt-grpc


https://github.com/nursyah21/go-usermgmt-grpc

Last synced: about 21 hours ago
JSON representation

Awesome Lists containing this project

README

        

# GRPC with golang

## day1

Prequisites:

other tutorials:

-
-

Build a Unary Service Method

![img](/assets/unary-services.png)

generated protobuf

```bash
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative usermgmt/usrmgmt.proto
```

create repository in github to place code and run

```bash
go mod tidy
```

to download module

for testing run server and client

```bash
go run server/usermgmt_server.go
go run client/usermgmt_client.go
```