{"id":18078244,"url":"https://github.com/imthaghost/chatserv","last_synced_at":"2025-04-05T20:32:12.179Z","repository":{"id":57708765,"uuid":"241302660","full_name":"imthaghost/chatserv","owner":"imthaghost","description":"IRC server written in Go!","archived":false,"fork":false,"pushed_at":"2020-03-08T11:31:10.000Z","size":9568,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T20:50:56.490Z","etag":null,"topics":["chat","cli","go","golang","server","tcp-server"],"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/imthaghost.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}},"created_at":"2020-02-18T07:52:09.000Z","updated_at":"2024-08-23T14:57:10.000Z","dependencies_parsed_at":"2022-09-09T15:51:13.861Z","dependency_job_id":null,"html_url":"https://github.com/imthaghost/chatserv","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/imthaghost%2Fchatserv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imthaghost%2Fchatserv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imthaghost%2Fchatserv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imthaghost%2Fchatserv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imthaghost","download_url":"https://codeload.github.com/imthaghost/chatserv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399501,"owners_count":20932869,"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":["chat","cli","go","golang","server","tcp-server"],"created_at":"2024-10-31T12:13:16.557Z","updated_at":"2025-04-05T20:32:12.152Z","avatar_url":"https://github.com/imthaghost.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003c!-- \u003ca href=\"#\"\u003e\n    \u003cimg alt=\"jive-search logo\" src=\"https://github.com/imthaghost/makescraper/blob/master/docs/media/logo.jpg\"\u003e \n  \u003c/a\u003e --\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\nA chatserver written in GO \n\u003c/p\u003e\n\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"#\"\u003e\n    \u003cimg src=\"https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg\"alt=\"gitmoji-changelog\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/badge/github.com/imthaghost/gochat\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/imthaghost/gochat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"#\"\u003e\u003cimg src=\"https://github.com/imthaghost/gochat/blob/master/docs/media/chat.png\"\u003e\u003c/a\u003e  \n\u003c/p\u003e\n\u003cbr\u003e\n\n### 📚 Table of Contents\n\n1. [Deliverables](#deliverables)\n2. [Getting Started](#getting-started)\n3. [Local Development](#local-development)\n\n## Deliverables\n\n-   [x] Single chat room\n-   [x] Users can connect to the server\n-   [x] Users can set their name\n-   [x] Users can send the message to the room\n-   [x] Users can see all other user's messages\n\n## Installation\n\n```sh\n$ go get github.com/imthaghost/chatserv\n```\n\n## Getting Started\n\n### server.go\n\n```go\npackage main\n\nimport (\n\t\"github.com/imthaghost/chatserv/server\"\n)\n\nfunc main() {\n\tvar s server.ChatServer\n\ts = server.NewServer()\n\ts.Listen(\":3333\")\n\n\t// start the server\n\ts.Start()\n}\n```\n\n### client.go\n\n```go\npackage main\n\nimport (\n\t\"flag\"\n\t\"log\"\n\n\t\"github.com/imthaghost/chatserv/client\"\n\t\"github.com/imthaghost/chatserv/tui\"\n)\n\nfunc main() {\n\taddress := flag.String(\"server\", \"\", \"Which server to connect to\")\n\n\tflag.Parse()\n\n\tclient := client.NewClient()\n\terr := client.Dial(*address)\n\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tdefer client.Close()\n\n\t// start the client to listen for incoming message\n\tgo client.Start()\n\n\ttui.StartUi(client)\n}\n```\n\n### Run\n\n```sh\n# we start the irc server\n$ go run server.go\n# in a new termnal window we start the client\n$ go run client.go --server localhost:3333\n```\n\n## Demo\n\n![Example](/docs/media/client.gif)\n\n## Local Development\n\n```sh\n# inside github.com/imthaghost/server/ircserver\n$ go run main.go\n# inside github.com/imthaghost/tui/irc\n$ go run main.go --server localhost:3333\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimthaghost%2Fchatserv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimthaghost%2Fchatserv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimthaghost%2Fchatserv/lists"}