Online Customer Service System
Project Introduction
Golang language customer service system, mainly using gin + jwt-go + websocket + go.uuid + gorm + cobra + VueJS + ElementUI + MySQL and other technologies
Installation and Use
- First install and run mysql database, version >=5.5, create a database
Configure database link information, in the config directory mysql.json
Install and configure the Golang operating environment, please refer to the following command to execute
Import database go run main.go install
Source code run go run main.go server
Source code package go build -o kefu will generate a kefu executable file
Binary file operation
linux: ./kefu server [optional -p 8003 -d]
windows: kefu.exe server [optional -p 8003 -d]
Close the program
killall kefu
After the program runs normally, listen to port 8003 and can directly access it with ip+port 8003
You can also configure domain name access and reverse proxy to port 8081 to hide the port number
Customer Service Connection
Chat Link
http://127.0.0.1:8003/chatIndex?kefu_id=kefu2
Pop-up window usage
(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:8003",function(u){
KEFU.init({
KEFU_URL:u,
KEFU_KEFU_ID: "kefu2",
})
});