https://github.com/skillcoder/go-chat
CLI chat in golang
https://github.com/skillcoder/go-chat
Last synced: 6 months ago
JSON representation
CLI chat in golang
- Host: GitHub
- URL: https://github.com/skillcoder/go-chat
- Owner: skillcoder
- Created: 2018-10-29T13:46:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T10:33:12.000Z (about 7 years ago)
- Last Synced: 2025-03-03T12:47:54.932Z (10 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-chat
CLI Client/Server chat in go with gRPC transport
### Install
go get github.com/skillcoder/go-chat
(make sure you have set GOPATH and GOOS)
cd ${GOPATH}/src/github.com/skillcoder/go-chat
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/golang/protobuf
go get google.golang.org/grpc
export PATH=$PATH:$GOPATH/bin
cd server
glide update
cd ../client
glide update
### Deps
#### Freebsd
sudo pkg install go
sudo pkg install go-glide
sudo pkg install protobuf
export GOOS=freebsd
#### Ubuntu
sudo add-apt-repository ppa:maarten-fonville/protobuf
sudo apt-get update
sudo apt install protobuf-compiler
export GOOS=linux
### Build
```
make proto
```
### Server
`cd server`
```
make
bin/linux/go-chat-server [-v] [-l 0.0.0.0:8000]
```
### Client
`cd client`
```
make
bin/linux/go-chat-client -u Username [-v] [-h 127.0.0.1:8000]
```