{"id":26313895,"url":"https://github.com/mehran1383/chat_application","last_synced_at":"2025-06-29T03:42:57.780Z","repository":{"id":228682193,"uuid":"774643814","full_name":"Mehran1383/Chat_Application","owner":"Mehran1383","description":"A simple desktop messenger developed  with Qt \u0026 C++","archived":false,"fork":false,"pushed_at":"2025-03-12T09:25:09.000Z","size":3835,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T10:30:34.501Z","etag":null,"topics":["cplusplus","qt5"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mehran1383.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-19T23:01:00.000Z","updated_at":"2025-03-12T09:25:12.000Z","dependencies_parsed_at":"2025-03-03T12:47:01.521Z","dependency_job_id":null,"html_url":"https://github.com/Mehran1383/Chat_Application","commit_stats":null,"previous_names":["mehran1383/iutgram-a-simple-messenger-written-in-qt-c-","mehran1383/chat_application"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehran1383%2FChat_Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehran1383%2FChat_Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehran1383%2FChat_Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehran1383%2FChat_Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mehran1383","download_url":"https://codeload.github.com/Mehran1383/Chat_Application/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719311,"owners_count":20336607,"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","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":["cplusplus","qt5"],"created_at":"2025-03-15T11:17:16.807Z","updated_at":"2025-03-15T11:17:17.695Z","avatar_url":"https://github.com/Mehran1383.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Desktop chat application\n\u003e Prepared for Advanced programming course in Isfahan university of technology\n## Details of client/server implementation \n### Communication with Server\nThe application uses provided APIs to send requests to the server and receive appropriate responses to be used in the messenger.\n\n### API Structure\n```\nhttp://hostname:port/command?parameters\n```\n- **hostname**: Address of the server where the server code is running.\n- **port**: Port for communication with the server.\n- **command**: Commands requested from the server.\n- **parameters**: Optional key-value pairs sent to the server with the request.\n\n### Example Request\nRegistering a user with the username `Mehran` and password `1383`:\n```\nhttp://api.barafardayebehtar.ml:8080/signup?username=Mehran\u0026password=1383\n```\nResponses are in JSON format, with `code` and `message` fields indicating the status and response message from the server.\n\n### Response Codes\n- **200**: Request successful.\n- **404**: Request unsuccessful, information not found.\n- **204**: Request unsuccessful, duplicate information.\n- **401**: Request unsuccessful, incorrect information.\n\n### Server Details\n- **hostname**: `api.barafardayebehtar.ml`\n- **port**: `8080`\n\n### Request Format\n```\nhttp://api.barafardayebehtar.ml:8080/command?parameters\n```\n\n### Main Messenger Scenario\n1. **Sign Up**: Register as a user.\n2. **Login**: Obtain a unique token representing user identity.\n3. **All Requests**: Sent with the unique token for user identification.\n4. **Logout**: Token is set to `null` and a new token is assigned upon next login.\n\n### Available APIs\n| Command            | Parameters                                  | Description                                                              |\n|--------------------|---------------------------------------------|--------------------------------------------------------------------------|\n| signup             | username, password, firstname, lastname     | Register a new user.                                                     |\n| login              | username, password                          | Log in a user and receive a unique token.                                |\n| logout             | username, password                          | Log out a user and nullify their token.                                  |\n| creategroup        | token, group_name, group_title              | Create a new group.                                                      |\n| createchannel      | token, channel_name, channel_title          | Create a new channel.                                                    |\n| getuserlist        | token                                       | Get the list of users the current user has chatted with.                 |\n| getgrouplist       | token                                       | Get the list of groups the current user is a member of.                  |\n| getchannellist     | token                                       | Get the list of channels the current user is a member of.                |\n| getuserchats       | token, dst, date                            | Get the list of messages with a specific user.                           |\n| getgroupchats      | token, dst, date                            | Get the list of messages in a specific group.                            |\n| getchannelchats    | token, dst, date                            | Get the list of messages in a specific channel.                          |\n| joingroup          | token, group_name                           | Join a specific group.                                                   |\n| joinchannel        | token, channel_name                         | Join a specific channel.                                                 |\n| sendmessageuser    | token, dst, body                            | Send a message to a specific user.                                       |\n| sendmessagegroup   | token, dst, body                            | Send a message in a specific group.                                      |\n| sendmessagechannel | token, dst, body                            | Send a message in a specific channel.                                    |\n\n### Offline Message Access\nThe application stores all requested messages in categorized files to access the messenger information offline.\n\n1. Application creates folders: `Users`, `Groups`, `Channels`.\n2. For each user, group, and channel, applicaton creates respective files and save messages for offline access.\n\n## Some features of project\n\nIn addition to sending and receiving messages, this program has these features :\n\n- A beautiful ui which makes this messenger more atractive\n\n![Screenshot (603)](https://github.com/KassemKayall/Massenger/assets/134122361/b06dd1fa-2273-49b5-8d0d-bdeb44dbda63)\n---\n- Ability to capture or select a picture for profile\n\n![Screenshot (604)](https://github.com/KassemKayall/Massenger/assets/134122361/0f5c2aea-39a0-43d5-94c0-7cca7181243f)\n---\n- Changing background theme\n\n![Screenshot (605)](https://github.com/KassemKayall/Massenger/assets/134122361/3fd931cf-f34a-4a9e-ad83-a339a4598f47)\n---\n- Changing font style and size\n\n![Screenshot (606)](https://github.com/KassemKayall/Massenger/assets/134122361/0531c097-e2a1-492d-a152-9201488508ce)\n---\n\n## Prerequisites\n\n- Qt 5.13 or later\n- C++ 11 compatible compiler\n- qmake (included with Qt)\n\n## Building the Project\n\n1. Clone the repository:\n\n    ```sh\n    git clone \u003crepository-url\u003e\n    ```\n\n2. Open the project in Qt Creator:\n    - Open `nmassenger.pro` for the client application.\n\n3. Build the project using Qt Creator.\n---\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehran1383%2Fchat_application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehran1383%2Fchat_application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehran1383%2Fchat_application/lists"}