docs: 更新README文档并添加服务启动说明
添加详细的后端服务启动步骤、前端访问方式和技术栈说明 更新项目结构描述和日志文件内容
This commit is contained in:
parent
dc22ac4406
commit
3ea990ebdc
44
README.md
44
README.md
|
|
@ -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/`:开发与运维脚本
|
||||
|
|
@ -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"}
|
||||
|
|
|
|||
Loading…
Reference in New Issue