go-chat-cli

module
v0.0.0-...-0fea03e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: MIT

README

Go gRPC Chat CLI

A Chat Server/CLI implementation, using gRPC and golang.

Installation

# 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

# 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

# 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

# go-chat-server
go build -o dist/go-chat-server server/server.go
# go-chat
go build -o dist/go-chat cli/cli.go

Directories

Path Synopsis
Package chat_service is a generated protocol buffer package.
Package chat_service is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL