chatAppWithGRPC
chatAppWithGRPC copied to clipboard
GRPC Go Server with ios client app
GRPC Streaming Chat GO server with Swift client app
Feature Try out
- SwiftUI
- Combine
- GRPC-Swift
- Golang GRPC
- MongoDB
- Evans CLI
Setup
- follow the guide of installing GRPC Go at Reference section
- Copy
ChatServiceDir to yourGodirectory - to generate proto of swift client go to the directory of protos
protoc chat_proto.proto --swift_out=. --swiftgrpc_out=Client=true,Server=false:.
- to generate proto of Go Server go to the root directory of project
protoc --proto_path=protos/ --go_out=plugins=grpc:protos/genbuf chat_proto.proto
or run the script
./generate.sh
you may need to change IP Address on client app to your localhost.
Reference
- https://grpc.io/
- https://github.com/grpc/grpc-swift
- https://github.com/nickffox/KeyboardObserving
- https://talk.objc.io/
- https://github.com/ktr0731/evans
