{"id":26702120,"url":"https://github.com/leoantony72/go-chat2","last_synced_at":"2025-04-13T11:27:48.469Z","repository":{"id":161679522,"uuid":"547796022","full_name":"leoantony72/go-chat2","owner":"leoantony72","description":"Improved go chat application with distributed web servers,group chat","archived":false,"fork":false,"pushed_at":"2022-11-09T15:38:49.000Z","size":32,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T02:39:15.370Z","etag":null,"topics":["cassandra","docker","golang","pubsub","redis","scalling","system","websockets"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leoantony72.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":"2022-10-08T10:00:13.000Z","updated_at":"2025-03-23T13:05:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"86ab8d51-c5ec-49d7-979c-b92c60359490","html_url":"https://github.com/leoantony72/go-chat2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoantony72%2Fgo-chat2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoantony72%2Fgo-chat2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoantony72%2Fgo-chat2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoantony72%2Fgo-chat2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoantony72","download_url":"https://codeload.github.com/leoantony72/go-chat2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705041,"owners_count":21148475,"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":["cassandra","docker","golang","pubsub","redis","scalling","system","websockets"],"created_at":"2025-03-27T02:33:51.273Z","updated_at":"2025-04-13T11:27:48.463Z","avatar_url":"https://github.com/leoantony72.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\n\u003cp\u003eBuilt a Distributed Chat system with Golang, Cassandra and Redis. Scalling Websocket servers with redis Pub/Sub and storing message in Cassandra. Made this project for educational purpose. \u003c/p\u003e\n\n\u003cb\u003eDetailed Explanation on System Architecture: https://dev.to/leoantony72/distributed-chat-application-22oo\u003c/b\u003e\n\n\u0026nbsp;\n\n## Running the application\n\n```bash\ndocker-compose up -d\n```\n\n## CRUD Routes\n\n|  Routes   | Method |  Description   |\n| :-------: | :----: | :------------: |\n|   /user   |  POST  | Create a User  |\n|   /room   |  POST  | Create a Room  |\n| /joinroom |  POST  | Join in a Room |\n\n## Websocket Connection\n\n```websocket URL\nws:/localhost/chat?id=username\n```\n\n## Examples\n\n- \u003ci\u003e/user\u003c/i\u003e\n\n```JSON\n{\n    \"username\":\"JOHN\"\n}\n```\n\n- \u003ci\u003e/room\u003c/i\u003e\n\n```JSON\n{\n    \"name\":\"anime\",\n    \"user\":\"JOHN\"\n}\n```\n\n- \u003ci\u003e/joinroom\u003c/i\u003e\n\n```JSON\n{\n    \"name\":\"anime\",\n    \"user\":\"JOHN\"\n}\n```\n\n- \u003ci\u003ePrivate Chat - Websocket\u003c/i\u003e\n\n```JSON\n{\n    \"msg\":\"hello Boi\",\n    \"receiver\":\"2GKtMkzDZDerO2a1gl5IHK6OTPY\",\n    \"is_group\":false\n}\n```\n\n- \u003ci\u003eGroup Chat - Websocket\u003c/i\u003e\n\n```JSON\n{\n    \"msg\":\"hello Boi\",\n    \"is_group\":true,\n    \"group_name\":\"anime\"\n}\n```\n\n---\n\n\u003ci\u003eHope you will try this out, and leave me your feedback also feel free to improve this project by making a PR😁.\u003c/i\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoantony72%2Fgo-chat2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoantony72%2Fgo-chat2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoantony72%2Fgo-chat2/lists"}