Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.07 KB

readme.md

File metadata and controls

46 lines (31 loc) · 1.07 KB

Simple Chatroom

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.

Features

  • 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

Prerequisites

  • Docker
  • C++11 or higher
  • A C++ compiler (e.g., g++)

Getting Started

Follow these instructions to set up and run the chatroom application using Docker.

Building Docker Images and Run

  1. Clone the repository:
git clone <repository-url>
cd <repository-directory>
  1. 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 .
  1. Start the server:
docker run --name chatroom-server -d chatroom-server
  1. Open a new terminal window for each client and run:
docker run --rm -it chatroom-client ./client <username>