Categorygithub.com/elsumanta/grpcserver
module
0.0.0-20230602104251-fa1bdd3e2983
Repository: https://github.com/elsumanta/grpcserver.git
Documentation: pkg.go.dev

# README

grpcserver

Architecture: Clean Architecture

Prequisite:

  1. setup go evn https://go.dev/doc/install
  2. install grpc library https://grpc.io/docs/languages/go/quickstart/ *3. install posgreSql library
  3. folow https://github.com/gusaul/grpcox to install grpcox interface

Use docker postgre container: How to run postgresql server: docker-compose up --build -d How to stop postgresql server: docker-compose down

Database Config: dbhost = "localhost" dbport = 5656 user = "server" password = "server" dbname = "grpc-server"

How to run:

  1. cd directory server
  2. run command go mod vendor
  3. run go build && ./server
  4. run grpcox and connect to server port 50051

*How to update grpc contract quick-start: https://grpc.io/docs/languages/go/quickstart/ added new contract and compile with command: protoc --proto_path=${GOPATH}/src --proto_path=${GOPATH}/src/github.com/protobuf -I grpc/ grpc/contract.proto --go_out=plugins=grpc:grpc

Noted: *: ifneed

# Packages

No description provided by the author