Skip to content

The project that using golang 1.19. For learning about grpc.

Notifications You must be signed in to change notification settings

paulodutra/golang-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang grpc

The project that using golang 1.19. For learning about grpc.

  1. For install dependencies: go mod tidy

  2. For generate proto files (protocol buffer and grpc):

protoc --go_out=. --go-grpc_out=. proto/course_category.proto
  1. For install gRPC dependencies: go mod tidy

  2. You need install evans gRPC for calls: https://github.com/ktr0731/evans#installation

  3. create database and table:

touch db.sqlite
sqlite3 db.sqlite
create table categories (id string, name string, description string);
  1. Start application: go run cmd/grpcServer/main.go

  2. Started evans services: evans -r repl OBS: You can use the binary file and started service directly it. For example (linux): ./evans -r repl

  3. After started evans. You can test call to grpc services with call name-of-service. For example: call ListCategories

About

The project that using golang 1.19. For learning about grpc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages