{"id":13600301,"url":"https://github.com/taoshihan1991/go-fly","last_synced_at":"2025-05-15T08:00:28.028Z","repository":{"id":37274554,"uuid":"255823049","full_name":"taoshihan1991/go-fly","owner":"taoshihan1991","description":"开源在线客服系统GO语言开发GO-FLY,免费在线客服系统/open source self-hosted private cloud customer support live chat software by golang","archived":false,"fork":false,"pushed_at":"2023-12-16T08:23:23.000Z","size":14318,"stargazers_count":2306,"open_issues_count":35,"forks_count":657,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-04-14T13:04:48.225Z","etag":null,"topics":["chat","chatbot","customer-service","customer-support","golang","livechat","private-cloud","self-hosted","web-chat"],"latest_commit_sha":null,"homepage":"","language":"Go","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/taoshihan1991.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":"2020-04-15T06:16:49.000Z","updated_at":"2025-04-14T03:33:02.000Z","dependencies_parsed_at":"2023-12-16T09:38:48.038Z","dependency_job_id":"81457387-60d7-49ba-9cf7-77479f6fb54a","html_url":"https://github.com/taoshihan1991/go-fly","commit_stats":null,"previous_names":["taoshihan1991/imaptool"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoshihan1991%2Fgo-fly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoshihan1991%2Fgo-fly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoshihan1991%2Fgo-fly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taoshihan1991%2Fgo-fly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taoshihan1991","download_url":"https://codeload.github.com/taoshihan1991/go-fly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254301420,"owners_count":22047901,"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","chatbot","customer-service","customer-support","golang","livechat","private-cloud","self-hosted","web-chat"],"created_at":"2024-08-01T18:00:35.402Z","updated_at":"2025-05-15T08:00:27.998Z","avatar_url":"https://github.com/taoshihan1991.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"### 郑重提示\n禁止将本项目用于含病毒、木马、色情、赌博、诈骗、违禁用品、假冒产品、虚假信息、数字货币、金融等违法违规业务\n\n当前项目仅供个人学习测试，禁止一切线上商用行为，禁止一切违法使用！！！\n\n\n\n\n### 项目简介\n\nGolang语言开源客服系统，主要使用了gin + jwt-go + websocket + go.uuid + gorm + cobra + VueJS + ElementUI + MySQL等技术\n\n\n### 安装使用\n\n\n* 先安装和运行mysql数据库 ，版本\u003e=5.5 ，创建数据库\n \n```\n create database gofly charset utf8mb4;\n```\n   \n*  配置数据库链接信息，在config目录mysql.json中\n```php\n{\n\t\"Server\":\"127.0.0.1\",\n\t\"Port\":\"3306\",\n\t\"Database\":\"gofly\",\n\t\"Username\":\"go-fly\",\n\t\"Password\":\"go-fly\"\n}\n```\n* 安装配置Golang运行环境，请参照下面的命令去执行\n```php\nwget https://studygolang.com/dl/golang/go1.20.2.linux-amd64.tar.gz\ntar -C /usr/local -xvf go1.20.2.linux-amd64.tar.gz\nmv go1.20.2.linux-amd64.tar.gz /tmp\necho \"PATH=\\$PATH:/usr/local/go/bin\" \u003e\u003e /etc/profile\necho \"PATH=\\$PATH:/usr/local/go/bin\" \u003e\u003e ~/.bashrc\nsource /etc/profile\ngo version\ngo env -w GO111MODULE=on\ngo env -w GOPROXY=https://goproxy.cn,direct\n```\n* 下载代码\n\n    在任意目录 git clone https://github.com/taoshihan1991/go-fly.git\n    \n    进入go-fly 目录\n   \n* 导入数据库 go run go-fly.go install\n\n* 源码运行 go run go-fly.go server\n\n* 源码打包 go build -o kefu  会生成kefu可以执行文件\n\n* 二进制文件运行\n\n   linux:   ./kefu server [可选 -p 8082 -d]\n   \n   windows: kefu.exe server [可选 -p 8082 -d]\n   \n* 关闭程序\n\n   killall kefu\n\n\n程序正常运行后，监听端口8081，可以直接ip+端口8081访问\n\n也可以配置域名访问，反向代理到8081端口，就能隐藏端口号\n### 客服对接\n聊天链接\n\nhttp://127.0.0.1:8081/chatIndex?kefu_id=kefu2\n\n弹窗使用\n\n```\n    (function(a, b, c, d) {\n        let h = b.getElementsByTagName('head')[0];let s = b.createElement('script');\n        s.type = 'text/javascript';s.src = c+\"/static/js/kefu-front.js\";s.onload = s.onreadystatechange = function () {\n            if (!this.readyState || this.readyState === \"loaded\" || this.readyState === \"complete\") d(c);\n        };h.appendChild(s);\n    })(window, document,\"http://127.0.0.1:8081\",function(u){\n        KEFU.init({\n            KEFU_URL:u,\n            KEFU_KEFU_ID: \"kefu2\",\n        })\n    });\n\n```\n### 版权声明\n\n当前项目是完整功能代码 , 但是仍然仅支持个人演示测试 , 不包含线上使用 ，禁止一切商用行为。\n使用本软件时,请遵守当地法律法规,任何违法用途一切后果请自行承担.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaoshihan1991%2Fgo-fly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaoshihan1991%2Fgo-fly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaoshihan1991%2Fgo-fly/lists"}