Skip to content

Latest commit

 

History

History
25 lines (12 loc) · 647 Bytes

README.md

File metadata and controls

25 lines (12 loc) · 647 Bytes

Install grpc-go

go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]

Create proto files

protoc --go_out=. --go-grpc_out=. orderpb/order.proto

Atlas schema migration

atlas schema inspect -u "postgres://postgres:root@localhost:3002/realtime-dashboard-grpc?sslmode=disable" > migrations/schema.hcl
atlas schema apply -u "postgres://postgres:root@localhost:3002/realtime-dashboard-grpc?sslmode=disable" --to file://migrations/schema.hcl

Run server

docker compose -f docker-compose.yml up

Run client

go run client/client.go