This is a simple terminal-based chatroom application implemented in C++. It allows multiple users to connect to a server and chat with each other in real-time.
- Real-time messaging between multiple clients
- Each client shows messages from all users, including their own messages
- Notifications when users join or leave the chatroom
- Docker
- C++11 or higher
- A C++ compiler (e.g.,
g++
)
Follow these instructions to set up and run the chatroom application using Docker.
- Clone the repository:
git clone <repository-url>
cd <repository-directory>
- Build the Docker image for the server and clients:
docker build -f build/Dockerfile.server -t chatroom-server .
docker build -f build/Dockerfile.client -t chatroom-client .
- Start the server:
docker run --name chatroom-server -d chatroom-server
- Open a new terminal window for each client and run:
docker run --rm -it chatroom-client ./client <username>