Skip to content

mfaizudd/grpc-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc-chat, rust edition

A complete rewrite of my own GrpcChat in rust

Why?

idk lol

Running with cargo

To the server on port 5000:

cargo run --bin chat-server -- -p 5000

To start the client on localhost:5000

cargo run --bin chat-client -- localhost -p 5000

Using tls

Currently, the server doesn't support tls directly, use nginx reverse proxy instead.

To use the client with tls enabled, place your ca.pem file to <config_dir>/ca.pem. <config_dir> on each platform are:

  • Windows: %appdata%\faizud\chat\config
  • Linux: $HOME/.config/chat
  • Mac: /Users/Username/Library/Application Support/net.faizud.chat

After placing the ca.pem file, run the client with --tls argument.

Docker

To use prebuilt docker image, run

docker run -dp 5000 --name chat-server mfaizudd/chat-server

About

A console chat app using rust and grpc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published