https://github.com/andefined/go-chat-cli
Go gRPC Chat CLI
https://github.com/andefined/go-chat-cli
cli golang grpc
Last synced: 8 months ago
JSON representation
Go gRPC Chat CLI
- Host: GitHub
- URL: https://github.com/andefined/go-chat-cli
- Owner: andefined
- License: mit
- Created: 2018-04-22T12:02:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-07T12:26:33.000Z (almost 8 years ago)
- Last Synced: 2025-03-30T07:13:53.322Z (about 1 year ago)
- Topics: cli, golang, grpc
- Language: Go
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go gRPC Chat CLI
A Chat Server/CLI implementation, using gRPC and golang.
## Installation
```bash
# clone the repo
git clone git@github.com:andefined/go-chat-cli.git
# install dependencies
go get -u google.golang.org/grpc
go get -u github.com/golang/protobuf/protoc-gen-go
# generate grpc client/server
make build
```
## Usage
```bash
# go-chat-server
Usage of go-chat-server:
-port int
Port to Listen (default 50051)
# go-chat
Usage of go-chat:
-server_addr string
Server Address (host:port) (default "127.0.0.1:50051")
```
## Development
```bash
# start the server
go run server/server.go --port 50051
# start the client
go run cli/cli.go --server_addr 127.0.0.1:50051
```
## Build
```bash
# go-chat-server
go build -o dist/go-chat-server server/server.go
# go-chat
go build -o dist/go-chat cli/cli.go
```