{"id":31629564,"url":"https://github.com/parvvaresh/chatapp","last_synced_at":"2025-10-06T21:28:53.735Z","repository":{"id":204916861,"uuid":"712963484","full_name":"parvvaresh/chatApp","owner":"parvvaresh","description":"A simple TCP chat application built in Go.","archived":false,"fork":false,"pushed_at":"2025-09-05T11:42:10.000Z","size":20684,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-23T12:49:40.599Z","etag":null,"topics":["go","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","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/parvvaresh.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-01T15:05:56.000Z","updated_at":"2025-09-21T08:45:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"a054a07c-d754-48ef-90f0-d6c1b7dd7f18","html_url":"https://github.com/parvvaresh/chatApp","commit_stats":null,"previous_names":["parvvaresh/practice-pandas","parvvaresh/word_cloud_fa","parvvaresh/chat-room","parvvaresh/chatapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/parvvaresh/chatApp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvvaresh%2FchatApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvvaresh%2FchatApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvvaresh%2FchatApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvvaresh%2FchatApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parvvaresh","download_url":"https://codeload.github.com/parvvaresh/chatApp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parvvaresh%2FchatApp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278685137,"owners_count":26028229,"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-10-06T02:00:05.630Z","response_time":65,"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":["go","websocket"],"created_at":"2025-10-06T21:28:48.232Z","updated_at":"2025-10-06T21:28:53.724Z","avatar_url":"https://github.com/parvvaresh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TCP Chat Application\n\nA simple TCP chat application built in Go. The project includes a server and client programs, which allow multiple users to connect and chat in real-time. The project also provides Docker and Docker Compose setup for easy deployment and testing.\n\n---\n\n## Features\n\n* TCP-based chat server and client\n* Support for multiple clients simultaneously\n* Dockerized server and clients for easy deployment\n* Can be extended to WebSocket support or custom features\n\n---\n\n## Project Structure\n\n```\ntcp-chat/\n├── server.go          # Server source code\n├── client.go          # Client source code\n├── Dockerfile         # Dockerfile to build server and client images\n├── docker-compose.yml # Compose file to run server and multiple clients\n├── go.mod             # Go module file\n├── go.sum             # Checksums for dependencies\n└── README.md          # Project documentation\n```\n\n---\n\n## Prerequisites\n\n* Go 1.21 or later\n* Docker (for containerized setup)\n* Docker Compose (for running multiple services)\n\n---\n\n## Running Locally\n\n### 1. Build and run the server manually\n\n```bash\n# Build server binary\ngo build -o chat-server ./server.go\n\n# Run server\n./chat-server\n```\n\n### 2. Build and run the client manually\n\n```bash\n# Build client binary\ngo build -o chat-client ./client.go\n\n# Run client (can run multiple instances)\n./chat-client\n```\n\n---\n\n## Running with Docker\n\n### 1. Build Docker images\n\n```bash\ndocker-compose build\n```\n\n### 2. Run server and clients\n\n```bash\ndocker-compose up\n```\n\n* The server will start listening on port 8080.\n* Clients will connect automatically.\n* You can open multiple terminal sessions to interact with different clients.\n\n### 3. Stop containers\n\n```bash\ndocker-compose down\n```\n\n---\n\n## CI/CD with GitHub Actions\n\n* The project includes a GitHub Actions workflow to:\n\n  * Build Go binaries\n  * Run tests\n  * Build Docker images\n  * Optional: push Docker images and deploy\n\n---\n\n## Extending the Project\n\n* Add username support for clients\n* Upgrade to WebSocket for browser-based chat\n* Add logging or message persistence\n\n---\n\n## License\n\nThis project is licensed under the MIT License.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparvvaresh%2Fchatapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparvvaresh%2Fchatapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparvvaresh%2Fchatapp/lists"}