{"id":30872910,"url":"https://github.com/bahaaio/messagingapp","last_synced_at":"2025-10-29T06:32:47.966Z","repository":{"id":262881706,"uuid":"888645471","full_name":"Bahaaio/MessagingApp","owner":"Bahaaio","description":"A simple terminal-based chat app with a multi-client server and real-time messaging using C++ and sockets.","archived":false,"fork":false,"pushed_at":"2024-11-14T19:16:44.000Z","size":62,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T15:20:43.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bahaaio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-14T18:55:04.000Z","updated_at":"2025-05-18T17:16:08.000Z","dependencies_parsed_at":"2024-11-14T20:24:27.397Z","dependency_job_id":"562b386a-1a45-4b4e-b860-436d63d1022f","html_url":"https://github.com/Bahaaio/MessagingApp","commit_stats":null,"previous_names":["bahaamohamed98/messagingapp","bahaaio/messagingapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bahaaio/MessagingApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2FMessagingApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2FMessagingApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2FMessagingApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2FMessagingApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bahaaio","download_url":"https://codeload.github.com/Bahaaio/MessagingApp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2FMessagingApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274107987,"owners_count":25223473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-07T22:46:38.610Z","updated_at":"2025-10-29T06:32:42.917Z","avatar_url":"https://github.com/Bahaaio.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terminal Messaging App\n\nA terminal-based chat system in C++ that features a server capable of handling multiple client connections concurrently,\nbroadcasting messages between them. The client provides a real-time messaging experience with a simple and intuitive\nterminal interface.\n\n## Features\n\n### Server\n\n- Handles multiple clients concurrently using threads.\n- Broadcasts incoming messages from clients to all other clients.\n- [Administrative commands](#server-commands)\n\n### Client\n\n- Connects to the server using TCP/IP sockets.\n- Displays messages in a simple chat UI, with distinct colors for different users.\n- Non-blocking message input and output.\n- [User commands](#client-commands).\n\n## Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/BahaaMohamed98/MessagingApp.git\n    cd MessagingApp/build\n    ```\n\n2. Run CMake to configure the project:\n    ```bash\n    cmake ..\n    ```\n\n3. Compile the project:\n    ```bash\n    cmake --build .\n    ```\n\n## Usage\n\n1. **Start the server** with a port number as an argument:\n    ```bash\n    ./server 8080\n    ```\n\n2. Connect to the server with the client (from another terminal or machine):\n    ```bash\n    ./messagingApp 8080 127.0.0.1\n    ```\n\n## Command Line Arguments\n\n### Server:\n\n- `\u003cport\u003e`: Port number for the server to listen on (default: 8080).\n\n### Client:\n\n- `\u003cport\u003e`: Port number to connect to (default: 8080).\n- `\u003cip\u003e`: IP address of the server (default: 127.0.0.1).\n\n## Commands\n\n### Server Commands\n\n- `/exit`: Shuts down the server.\n- `/users`: Displays the number of connected clients.\n\n### Client Commands\n\n- `/exit`: Closes the app.\n- `/clear`: Clears the messages' history.\n\n## Architecture\n\n### Server\n\n- The server accepts incoming client connections and creates a new thread for each client using std::thread.\n- It listens for incoming messages and broadcasts them to all connected clients.\n\n### Client\n\n- The client connects to the server and sends messages typed by the user.\n- It also receives and displays messages from the server in real time.\n\n## License\n\nThis project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahaaio%2Fmessagingapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahaaio%2Fmessagingapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahaaio%2Fmessagingapp/lists"}