https://github.com/clarencejychan/console-chat
Chat on your terminal with other users through a gRPC service
https://github.com/clarencejychan/console-chat
chat chat-application go golang grpc grpc-go protobuf protobuf3 pubsub redis
Last synced: 2 months ago
JSON representation
Chat on your terminal with other users through a gRPC service
- Host: GitHub
- URL: https://github.com/clarencejychan/console-chat
- Owner: clarencejychan
- License: mit
- Created: 2018-03-30T07:03:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-06T20:11:03.000Z (almost 8 years ago)
- Last Synced: 2024-06-20T11:56:40.885Z (almost 2 years ago)
- Topics: chat, chat-application, go, golang, grpc, grpc-go, protobuf, protobuf3, pubsub, redis
- Language: Go
- Size: 3.57 MB
- Stars: 20
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# console-chat
A project designed to learn about **Go**, **gRPC** and **Redis Pub/Sub**.
The application has a server where many clients can connect to in order to send messages back and forth through Redis as a message broker.
The publisher/subscriber model allows clients to subscribe to the server, while the server publishes incoming client requests back out.
## Demo

## Installation
Set up a redis server (instructions found [here](https://redis.io/topics/quickstart)) and make the necessary configurations in the server/clients to point towards the correct port.
Get the generated code using `go get -u github.com/clarencejychan/consolechat-grpc`
Run `go run server.go` or `go build server.go` in `console-chat/server/cmd` and run the binary.
Run `go run client.go` or `go build client.go` in `console-chat/client` and run the binary on as many consoles as you would like.
Follow the prompts on the screen and try typing into the client consoles!