https://github.com/cod3rboy/demo-grpc
A demo gRPC application dealing in the generation of transaction invoices.
https://github.com/cod3rboy/demo-grpc
Last synced: 5 months ago
JSON representation
A demo gRPC application dealing in the generation of transaction invoices.
- Host: GitHub
- URL: https://github.com/cod3rboy/demo-grpc
- Owner: cod3rboy
- Created: 2024-02-20T14:15:38.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-26T13:14:44.000Z (over 2 years ago)
- Last Synced: 2024-06-21T01:54:34.555Z (about 2 years ago)
- Language: Go
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gRPC Demo (Invoice generation and query)
A demo gRPC application consisting of a server and client which deals in the generation and query of transaction invoices.
## Start Server
`make run-server`
or
`go run ./cmd/server`
> **Note:** Pass optional `-port ` flag to the above `go run` command to specify a different port. Default port is `8000`.
## Run Client
### Create Invoice
`make invoice-create`
or
`go run ./cmd/client --action=create`
> **Note:** Pass optional `-server ` flag to above `go run` command to specify different server address. Default address is `localhost:8000`.
### Query Invoice
`make invoice-query`
or
`go run ./cmd/client --action=query`
> **Note:** Pass optional `-server ` flag to above `go run` command to specify different server address. Default address is `localhost:8000`.