Chat Server
Chat Server is a simple chat server that allows for clients to connect via telnet.
Running server locally
To run locally:
go run main.go
For help with possible flags:
go run main.go --help
OSX Binary
An Mach-O executable is included (chat)
Building
Project available on github
git clone git@github.com:ulisesflynn/torbit.git
go build main.go -o chat
Build server for docker
docker build -t chat .
Run server on docker as daemon
docker run -p 2000:2000 -p 8080:8080 chat --server-address=0.0.0.0
Connecting via telnet
telnet 127.0.0.1 2000
Posting a message to chat server via HTTP Rest API
curl -X POST -d "The Matrix is everywhere" http://127.0.0.1:8080/send_msg/morpheus
Run linting/tests
./validate.sh
TODO
- unit tests