An open API service indexing awesome lists of open source software.

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.

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`.