From 8dba78c96a5fa7a6d3c086b925047d7e701c00dc Mon Sep 17 00:00:00 2001 From: taoshihan <630892807@qq.com> Date: Tue, 3 Jan 2023 23:54:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E6=96=87=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 18 ++++--- readme_en.md | 142 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 154 insertions(+), 6 deletions(-) create mode 100644 readme_en.md diff --git a/readme.md b/readme.md index 7099923..244d5dc 100644 --- a/readme.md +++ b/readme.md @@ -1,11 +1,17 @@ -## 请注意当前项目仅供个人学习测试 -## 禁止一切线上商用行为,禁止一切违法使用!!! +# GOFLY [唯一客服]基于Golang语言和MySQL实现的WEB在线客服系统。 -# go-fly -基于Golang语言和MySQL实现的WEB在线客服系统 +

+中文 | +English | +Gitee +

-主要技术栈 - gin + jwt-go + websocket + go.uuid + gorm + cobra + VueJS + ElementUI + MySQL + +### 请注意当前项目仅供个人学习测试,禁止一切线上商用行为,禁止一切违法使用!!! + + +## 主要技术栈 +gin + jwt-go + websocket + go.uuid + gorm + cobra + VueJS + ElementUI + MySQL ### 项目预览 diff --git a/readme_en.md b/readme_en.md new file mode 100644 index 0000000..ed29ec2 --- /dev/null +++ b/readme_en.md @@ -0,0 +1,142 @@ +# GOFLY [V1KF] GOFLY LIVE CHAT FOR Customer Service + +GOFLY is a web-based customer service system implemented in Golang and MySQL. + +

+中文 | +English | +The official website +

+ + +### Please note that this project is for personal learning and testing only, and is prohibited for all online commercial use and illegal use! + +### It appears that you are providing information about purchasing a paid version of the software and receiving an installation package and authorization. + +## The main technology stack +gin + jwt-go + websocket + go.uuid + gorm + cobra + VueJS + ElementUI + MySQL + +### Preview + +![Image text](https://img2022.cnblogs.com/blog/726254/202211/726254-20221108002459990-32759129.png) + +![Image text](https://img2022.cnblogs.com/blog/726254/202211/726254-20221108002516168-1465488645.png) + +![Image text](https://img2022.cnblogs.com/blog/726254/202211/726254-20221108002619691-1817390882.png) + + + +### To install and use: + + +#### 1. Install and run MySQL >=5.5, and create the gofly database. + + create database gofly charset utf8; + + edit config/mysql.json +```php +{ + "Server":"127.0.0.1", + "Port":"3306", + "Database":"gofly", + "Username":"go-fly", + "Password":"go-fly" +} +``` + +#### 2. Run the source code: + +1. Go module: + + go env -w GO111MODULE=on + + go env -w GOPROXY=https://goproxy.cn,direct + + git clone https://github.com/taoshihan1991/go-fly.git + + go run go-fly.go install + + go run go-fly.go server + +3. Source code packaging: go build go-fly.go, which will generate the go-fly executable file. + +4. Import the database (will delete the table and clear the data): ./go-fly install + +5. Binary file execution: + + linux: ./go-fly server [optional -p 8082 -d] + + windows: go-fly.exe server [optional -p 8082 -d] + +6. Close the program: + ./go-fly stop + + For Linux, use the ps and kill commands to kill the process: + + ps -ef|grep go-fly + + kill process parent process id; kill process child process id + + or killall go-fly + +#### Usage +The server installation is complete and the service is running, and the client can be accessed through the browser. + +The default port is 8081. If you use the -p parameter to specify the port, you can access it through the browser http://127.0.0.1:port. + +The default user name and password are admin and admin. You can use the -u and -p parameters to specify the user name and password when installing the service. + + + + +### Nginx + +```php +server { + listen 443 ssl http2; + ssl on; + ssl_certificate conf.d/cert/4263285_gofly.sopans.com.pem; + ssl_certificate_key conf.d/cert/4263285_gofly.sopans.com.key; + ssl_session_timeout 5m; + ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_prefer_server_ciphers on; + #listen 80; + server_name gofly.sopans.com; + access_log /var/log/nginx/gofly.sopans.com.access.log main; + location /static { + root /var/www/html/go-fly;//自己的部署路径,静态文件直接nginx响应 + } + location / { + proxy_pass http://127.0.0.1:8081; + proxy_http_version 1.1; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Origin ""; + } +} +server{ + listen 80; + server_name gofly.sopans.com; + access_log /var/log/nginx/gofly.sopans.com.access.log main; + location /static { + root /var/www/html/go-fly;//自己的部署路径,静态文件直接nginx响应 + } + location / { + proxy_pass http://127.0.0.1:8081; + proxy_http_version 1.1; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Origin ""; + } +} +``` + + +### Copyright + +This project is a complete code with full functionality, but it is still only for personal demonstration and testing and does not include online use. + +All commercial activities are prohibited. When using this software, please comply with local laws and regulations. Any illegal use is at your own risk. \ No newline at end of file