https://github.com/hiromaily/connect-example
Example for go-connect and connect-web
https://github.com/hiromaily/connect-example
golang grpc nextjs react typescript
Last synced: 3 months ago
JSON representation
Example for go-connect and connect-web
- Host: GitHub
- URL: https://github.com/hiromaily/connect-example
- Owner: hiromaily
- License: mit
- Created: 2023-03-18T08:41:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T00:53:29.000Z (about 3 years ago)
- Last Synced: 2025-01-13T02:10:07.246Z (over 1 year ago)
- Topics: golang, grpc, nextjs, react, typescript
- Language: TypeScript
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# connect-example
Example for go-connect server and connect-web client.
This program follows a `Clean Architecture` as much as I can.
For now, this runs connect-go server and JSON-RPC server which call same use-case.

## Environment Variables
| Variables | Explanation | Default |
|--------------|----------------------|-------------------|
| PORT | gRPC server port | 8080 |
| JSONRPC-PORT | JSON-RPC server port | 8090 |
| CONF | config file path | ./config/dev.toml |
## Front-end
[README](./web/README.md)
## Generator
### For Golang
- [protoc-gen-go](https://pkg.go.dev/google.golang.org/protobuf)
- [protoc-gen-connect-go](https://github.com/bufbuild/connect-go/tree/main/cmd/protoc-gen-connect-go)
### For ES
- [protoc-gen-es](https://www.npmjs.com/package/@bufbuild/protoc-gen-es)
- [protoc-gen-connect-web](https://github.com/bufbuild/connect-es/tree/main/packages/protoc-gen-connect-web) [Deprecated]
- [protoc-gen-connect-es](https://github.com/bufbuild/connect-es/tree/main/packages/protoc-gen-connect-es)
## Rererences
- [Connect Docs](https://connect.build/docs/introduction)
- [connect-go](https://github.com/bufbuild/connect-go)
- [connect-web](https://www.npmjs.com/package/@bufbuild/connect-web)
- [connect-es](https://github.com/bufbuild/connect-es)
- [connect-demo](https://github.com/bufbuild/connect-demo)
- [Buf Docs](https://docs.buf.build/installation)
- [buf](https://github.com/bufbuild/buf)
- [grpc/grpc-web](https://github.com/grpc/grpc-web)