Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nareshbhatia/protobuf-to-graphql-demo
- Owner: nareshbhatia
- Created: 2024-05-22T22:29:51.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-24T05:17:46.000Z (6 months ago)
- Last Synced: 2024-06-19T03:14:06.666Z (5 months ago)
- Language: Go
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```