Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nareshbhatia/protobuf-to-graphql-demo

Protobuf to GraphQL Demo
https://github.com/nareshbhatia/protobuf-to-graphql-demo

Last synced: about 6 hours ago
JSON representation

Protobuf to GraphQL Demo

Awesome Lists containing this project

README

        

# Protobuf to GraphQL Demo

## Getting started

1. Make sure you have Go and Buf installed.
2. In shell 1, run `go run ./product-server/main.go` to start the product server.
3. In shell 2, run `go run ./brand-server/main.go` to start the brand server.
4. In shell 3, run `go run ./client/main.go` to run the grpc client.
It should print a list of products along with their brands.
5. In shell 4, run `go run ./graphql-gateway/gateway.go` to start the graphql gateway.

### Notes

1. Product server runs on port 9090.
2. Brand server runs on port 9091.

## Running proto-gen

```shell
make proto-lint
make proto-gen
```

## Running gqlgen

```shell
go run github.com/99designs/gqlgen generate
```