module
0.0.0-20230602104251-fa1bdd3e2983
Repository: https://github.com/elsumanta/grpcserver.git
Documentation: pkg.go.dev
# README
grpcserver
Architecture: Clean Architecture
Prequisite:
- setup go evn https://go.dev/doc/install
- install grpc library https://grpc.io/docs/languages/go/quickstart/ *3. install posgreSql library
- 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:
- cd directory server
- run command
go mod vendor
- run
go build && ./server
- 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