An open API service indexing awesome lists of open source software.

https://github.com/lmikolajczak/go-cli-chat

Chat server and command line interface client (CLI) in Go.
https://github.com/lmikolajczak/go-cli-chat

chat cli cli-chat go

Last synced: 3 months ago
JSON representation

Chat server and command line interface client (CLI) in Go.

Awesome Lists containing this project

README

          

[![Go Report Card](https://goreportcard.com/badge/github.com/Luqqk/go-cli-chat)](https://goreportcard.com/report/github.com/Luqqk/go-cli-chat)

## 💬 go-cli-chat

Chat server and client written in Go (simple prototype for learning purposes). The application utilizes goroutines and channels.

[![demo](https://asciinema.org/a/512757.svg)](https://asciinema.org/a/512757)

### Usage

```bash
# Build and start container:
docker compose up -d
# Enter go-cli-chat container:
docker exec -it go-cli-chat bash
# Run chat server within go-cli-chat container:
go-cli-chat-server
# Open another go-cli-chat container and start client with the given username:
go-cli-chat-client Lukasz
```

You can also make changes and rebuild either `client` or `server` by using:

```bash
$ make build-server
```

```bash
$ make build-client
```

### Contributing

I am open to, and grateful for, any contributions made by the community.