Skip to content

dimaglushkov/go-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-chat

go-chat is a TUI-based desktop application created mainly for demonstration purposes.

The way it works

The app consists of two separate runnable programs -

  1. go-chat-server.go - as you can guess, this program represents the server-side of the app
  2. go-chat.go - client app with terminal user interface

Server app

The server app is represented by two concepts:

  1. room - TCP server, to which clients connect to communicate. Each room client is a separate goroutine. Rooms have names and size limits.
  2. butler - gRPC server, which accepts gRPC-requests from clients to either find a room (basically return a port number) or to create one.

Client app

Client app is implemented with tview.

I'm horrible at creating UIs and client apps, so it may seem ugly, and also I was too lazy to implement a proper error message display

Nevertheless, I believe the current UI version is somewhat useful and serve its demonstrative purposes

Screen samples

addrPage

lobbyPage

lobbyPage

chatPage

About

Desktop terminal-based TCP-chat

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages