docs: 更新README文档并添加服务启动说明

添加详细的后端服务启动步骤、前端访问方式和技术栈说明
更新项目结构描述和日志文件内容
This commit is contained in:
zhouyonggao 2025-11-27 17:02:05 +08:00
parent dc22ac4406
commit 3ea990ebdc
2 changed files with 50 additions and 1 deletions

View File

@ -1,3 +1,45 @@
# MarketingSystemDataTool
营销系统、易码通数据工具
营销系统、易码通数据工具
## 服务启动方式
### 后端服务
1. **编译服务**(如未编译):
```bash
cd server
go build -o server ./cmd/server/main.go
```
2. **启动服务**
```bash
cd server
./server
```
3. **服务配置**
- 配置文件:`server/config.yaml`
- 默认端口8077
- 可通过环境变量覆盖配置
### 前端访问
服务启动后,通过浏览器访问:
```
http://localhost:8077
```
## 技术栈
- 后端Go 1.21
- 前端Vue 3 + Element Plus通过 CDN 引入)
- 数据库MySQL
- 导出格式CSV、Excel
## 项目结构
- `server/`Go 服务端代码
- `web/`:前端页面与静态资源
- `config/`:非敏感配置
- `scripts/`:开发与运维脚本

View File

@ -1,3 +1,10 @@
connecting YMT MySQL: 47.97.27.195:3306 db merketing user root
connecting Marketing MySQL: 192.168.6.92:3306 db market user root
Error 1045 (28000): Access denied for user 'root'@'117.175.169.61' (using password: YES)
connecting YMT MySQL: 47.97.27.195:3306 db merketing user root
connecting Marketing MySQL: 192.168.6.92:3306 db market user root
YMT DSN: root:lansexiongdi6,@tcp(47.97.27.195:3306)/merketing?parseTime=True&loc=Local&charset=utf8mb4
Marketing DSN: root:lansexiongdi@tcp(192.168.6.92:3306)/market?parseTime=True&loc=Local&charset=utf8mb4
server listening on :8077
{"bytes":2075,"duration_ms":53,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-27T17:01:19+08:00"}
{"bytes":2075,"duration_ms":46,"kind":"access","level":"INFO","method":"","path":"","query":"","remote":"","status":200,"trace_id":"","ts":"2025-11-27T17:01:28+08:00"}