master
taoshihan 2 months ago
parent 299a46060e
commit 035c86dffb

@ -14,7 +14,7 @@ An open-source customer service system developed in Golang
- Install and run MySQL (version ≥ 5.5). - Install and run MySQL (version ≥ 5.5).
- Create a database: - Create a database:
```sql ```sql
CREATE DATABASE gofly CHARSET utf8mb4; CREATE DATABASE goflychat CHARSET utf8mb4;
* Configure Database Connection * Configure Database Connection
Edit mysql.json in the config directory: Edit mysql.json in the config directory:
@ -44,30 +44,30 @@ go env -w GOPROXY=https://goproxy.cn,direct
Clone the repository in any directory: Clone the repository in any directory:
```php ```php
git clone https://github.com/taoshihan1991/go-fly.git git clone https://github.com/taoshihan1991/goflylivechat.git
cd gofly cd goflylivechat
``` ```
* Initialize the Database * Initialize the Database
```php ```php
go run go-fly.go install go run gofly.go install
``` ```
* Run the Application * Run the Application
```php ```php
go run go-fly.go server go run gofly.go server
``` ```
* Build executable * Build executable
```php ```php
go build -o kefu go build -o gochat
``` ```
* Run binary: * Run binary:
```php ```php
Linux: ./kefu server (optional flags: -p 8082 -d) Linux: ./gochat server (optional flags: -p 8082 -d)
Windows: kefu.exe server (optional flags: -p 8082 -d) Windows: gochat.exe server (optional flags: -p 8082 -d)
``` ```
* Terminate the Process * Terminate the Process
```php ```php
killall kefu killall gochat
``` ```
Once running, the service listens on port 8081. Access via http://[your-ip]:8081. Once running, the service listens on port 8081. Access via http://[your-ip]:8081.
@ -76,7 +76,7 @@ For domain access, configure a reverse proxy to port 8081 to hide the port numbe
### Customer Service Integration ### Customer Service Integration
Chat Link Chat Link
http://127.0.0.1:8081/chatIndex?kefu_id=agent http://127.0.0.1:8081/livechat?kefu_id=agent
Popup Integration Popup Integration

Loading…
Cancel
Save