https://github.com/taoshihan1991/go-fly
开源在线客服系统GO语言开发GO-FLY,免费在线客服系统/open source self-hosted private cloud customer support live chat software by golang
https://github.com/taoshihan1991/go-fly
chat chatbot customer-service customer-support golang livechat private-cloud self-hosted web-chat
Last synced: 9 days ago
JSON representation
开源在线客服系统GO语言开发GO-FLY,免费在线客服系统/open source self-hosted private cloud customer support live chat software by golang
- Host: GitHub
- URL: https://github.com/taoshihan1991/go-fly
- Owner: taoshihan1991
- License: apache-2.0
- Created: 2020-04-15T06:16:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-16T08:23:23.000Z (over 1 year ago)
- Last Synced: 2025-04-07T02:18:56.036Z (17 days ago)
- Topics: chat, chatbot, customer-service, customer-support, golang, livechat, private-cloud, self-hosted, web-chat
- Language: Go
- Homepage:
- Size: 13.7 MB
- Stars: 2,301
- Watchers: 46
- Forks: 656
- Open Issues: 35
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
### 郑重提示
禁止将本项目用于含病毒、木马、色情、赌博、诈骗、违禁用品、假冒产品、虚假信息、数字货币、金融等违法违规业务当前项目仅供个人学习测试,禁止一切线上商用行为,禁止一切违法使用!!!
### 项目简介
Golang语言开源客服系统,主要使用了gin + jwt-go + websocket + go.uuid + gorm + cobra + VueJS + ElementUI + MySQL等技术
### 安装使用
* 先安装和运行mysql数据库 ,版本>=5.5 ,创建数据库
```
create database gofly charset utf8mb4;
```
* 配置数据库链接信息,在config目录mysql.json中
```php
{
"Server":"127.0.0.1",
"Port":"3306",
"Database":"gofly",
"Username":"go-fly",
"Password":"go-fly"
}
```
* 安装配置Golang运行环境,请参照下面的命令去执行
```php
wget https://studygolang.com/dl/golang/go1.20.2.linux-amd64.tar.gz
tar -C /usr/local -xvf go1.20.2.linux-amd64.tar.gz
mv go1.20.2.linux-amd64.tar.gz /tmp
echo "PATH=\$PATH:/usr/local/go/bin" >> /etc/profile
echo "PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc
source /etc/profile
go version
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
```
* 下载代码在任意目录 git clone https://github.com/taoshihan1991/go-fly.git
进入go-fly 目录
* 导入数据库 go run go-fly.go install* 源码运行 go run go-fly.go server
* 源码打包 go build -o kefu 会生成kefu可以执行文件
* 二进制文件运行
linux: ./kefu server [可选 -p 8082 -d]
windows: kefu.exe server [可选 -p 8082 -d]
* 关闭程序killall kefu
程序正常运行后,监听端口8081,可以直接ip+端口8081访问
也可以配置域名访问,反向代理到8081端口,就能隐藏端口号
### 客服对接
聊天链接http://127.0.0.1:8081/chatIndex?kefu_id=kefu2
弹窗使用
```
(function(a, b, c, d) {
let h = b.getElementsByTagName('head')[0];let s = b.createElement('script');
s.type = 'text/javascript';s.src = c+"/static/js/kefu-front.js";s.onload = s.onreadystatechange = function () {
if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") d(c);
};h.appendChild(s);
})(window, document,"http://127.0.0.1:8081",function(u){
KEFU.init({
KEFU_URL:u,
KEFU_KEFU_ID: "kefu2",
})
});```
### 版权声明当前项目是完整功能代码 , 但是仍然仅支持个人演示测试 , 不包含线上使用 ,禁止一切商用行为。
使用本软件时,请遵守当地法律法规,任何违法用途一切后果请自行承担.