Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanerix/chitty-chat
Chitty-chat chat service, using gRPC
https://github.com/kanerix/chitty-chat
chat-application golang grpc protobuf
Last synced: 11 days ago
JSON representation
Chitty-chat chat service, using gRPC
- Host: GitHub
- URL: https://github.com/kanerix/chitty-chat
- Owner: Kanerix
- License: mit
- Created: 2024-10-09T10:31:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T09:48:26.000Z (about 2 months ago)
- Last Synced: 2024-12-08T13:50:07.763Z (16 days ago)
- Topics: chat-application, golang, grpc, protobuf
- Language: Go
- Homepage: https://chitty-chat.lerpz.com
- Size: 144 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chitty-Chat
Welcome to the Chitty-Chat project. This is developed following the course **Distributed Systems** at ITU.
## Usage server
This section will tell you how to start the Chitty-Chat server.
### Run server using Docker
Build the Chitty-Chat server docker container.
```bash
$ docker build . -t chitty-chat-server
...
[+] Building 10.0s (22/22) FINISHED
...
```Run the docker container.
```bash
$ docker run chitty-chat-server
2024/10/26 20:52:41 server is listening on [::]:8080
```### Run server using Go CLI
Clone the repository and run it using the Go CLI.
```bash
git clone https://github.com/kanerix/chitty-chat
```Use the Go CLI to start the server.
```bash
$ go run ./cmd/grpc
2024/10/26 20:52:41 server is listening on [::]:8080
```OPTIONAL: You can also use `make` to do the same.
```bash
$ make grpc-serve
2024/10/26 20:52:41 server is listening on [::]:8080
```## Usage client
This section will tell you how to install and use the client.
### Install client from repo
Install the `chitty` client from the github repository.
```bash
go install github.com/kanerix/chitty-chat/cmd/chitty
```Use the CLI to connect to the server.
```bash
# chitty chat -u [username] -H [hostname]
chitty chat -u Kanerix -H localhost:8080
```### Install client using Go CLI
Clone the repository and run it using the Go CLI.
```bash
git clone https://github.com/kanerix/chitty-chat
```Run the CLI with a username and optional hostname (default localhost:8080).
```bash
# go run ./cmd/chitty -u [username] -H [hostname]
go run ./cmd/chitty -u kanerix -H localhost:8080
```### Get help using client
If you need any help, you can use the `--help` flag.
```bash
chitty chat --help
```