Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tonic Chat

A real-time chat application built with Rust and gRPC.

Quick Start

Server

cd server
cargo run

Client

cd client
cargo run -- --username YourName

Project Structure

  • proto/ - Protocol Buffers definitions
  • server/ - Server implementation
  • client/ - Client implementation

Using the Chat Client

Launch Options

  • --username or -u: Set your username (default: "anonymous")
  • --server or -s: Set server address (default: "http://[::1]:50051")
cargo run -- --username Alice --server http://localhost:50051

Chat Commands

Command Description
/quit Exit the application
/help Show available commands
/nick <name> Change your username
/users List connected users
/clear Clear the screen

Chat Interface

  • Type messages and press Enter to send
  • Your messages appear in blue, others' in green
  • System messages appear in yellow

Development

Prerequisites

Build from Source

# Clone the repository
git clone https://github.com/yourusername/tonic-chat.git
cd tonic-chat

# Build the project
cargo build --release

Running Tests

cargo test

Features

  • Real-time messaging with gRPC streaming
  • User presence tracking
  • Username customization
  • Command-based interface
  • Cross-platform support

About

chat cli using tonic

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages