Skip to content

natthias/ChitChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChitChat

This program consists of a server and a client for the ChitChat messaging application

Generating grpc

  1. run protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative grpc/proto.proto in the root of the project

Running the program

  1. Open a terminal and navigate to the server directory (e.g. cd server)
  2. Start the server by running the appropriate command (e.g. go run server.go).
  3. Open another terminal and navigate to the client directory (e.g. cd client)
  4. Start the client by running the appropriate command (e.g., go run client.go <username>), Where <username> is the desired username for the client.
  5. Once the client is connected, you can type messages in the client terminal.
  6. The messages you type will be streamed to the server and broadcast to all other connected clients.
  7. Other clients will see the messages in their respective terminals.

About

ITU BSDISYS assignment

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages