Skip to content

wylu1037/go-grpc-web

Repository files navigation

Go gRPC

About

The go web build with gRPC.

Feature

  • Logging.
  • API documentation with Swagger.
  • Generate go code use buf.
  • Support jwt authentication.
  • Secure transport use TLS.
  • Unit testing with testify
  • CI/CD with GitHub action

Tech stack

  • Go Modern programming language
  • Docker Containerization
  • GRPC A high performance, open source universal RPC framework Get started!
  • Fx A dependency injection
  • Sqlite3 Embedded database
  • SqlC Compile SQL to type-safe code; catch failures before they happen.

Environment

Before you start, make sure you have Git, Go, Docker, gRPC, sqlC, and Sqlite3 installed.

Buf
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
gRPC-Gateway
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest

Getting start

Generate proto
buf generate proto
Generate database
sqlc generate

Api Docs

swagger-ui