A demo gRPC application consisting of a server and client which deals in the generation and query of transaction invoices.
make run-server
or
go run ./cmd/server
Note: Pass optional
-port <number>
flag to the abovego run
command to specify a different port. Default port is8000
.
make invoice-create
or
go run ./cmd/client --action=create
Note: Pass optional
-server <host:port>
flag to abovego run
command to specify different server address. Default address islocalhost:8000
.
make invoice-query
or
go run ./cmd/client --action=query
Note: Pass optional
-server <host:port>
flag to abovego run
command to specify different server address. Default address islocalhost:8000
.