初始提交: WeCom Middleware项目基础结构

包含以下内容:
1. Spring Boot后端项目结构
2. Vue.js前端项目结构
3. Docker Compose部署配置
4. MySQL数据库初始化脚本
5. Redis缓存配置
6. Nginx反向代理配置
7. 完整的项目文档

技术栈:
- 后端: Spring Boot 2.7.18 + Java 11 + MyBatis Plus
- 前端: Vue.js 3 + TypeScript + Element Plus
- 数据库: MySQL 8.0 + Redis 7
- 部署: Docker Compose + Nginx

已部署服务:
- 后端API: http://localhost:18080
- 前端界面: http://localhost:13000
- 数据库管理: http://localhost:18081
- MySQL: localhost:13306
- Redis: localhost:16379
This commit is contained in:
2026-03-09 12:39:09 +08:00
commit 034d425b21
52 changed files with 14816 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# 使用Nginx作为生产服务器
FROM nginx:alpine
# 复制Nginx配置
COPY docker/nginx.conf /etc/nginx/nginx.conf
# 创建简单的静态页面
RUN mkdir -p /usr/share/nginx/html
COPY frontend/index.html /usr/share/nginx/html/
RUN echo '<!DOCTYPE html><html><head><meta charset="UTF-8"><title>WeCom Middleware</title><style>body{font-family:Arial,sans-serif;max-width:800px;margin:0 auto;padding:20px;}h1{color:#333;}.status{margin-top:20px;padding:15px;background:#f5f5f5;border-radius:5px;}.status-up{color:green;font-weight:bold;}</style></head><body><div class="app"><h1>WeCom Middleware 管理界面</h1><p>企业微信与OpenClaw双向通信中间件</p><div class="status"><p>后端状态: <span class="status-up">运行中</span> (端口: 18080)</p><p>数据库: <span class="status-up">已连接</span> (MySQL: 13306)</p><p>Redis: <span class="status-up">已连接</span> (端口: 16379)</p><p>Adminer: <a href="http://localhost:18081" target="_blank">数据库管理</a></p></div></div></body></html>' > /usr/share/nginx/html/index.html
# 暴露端口
EXPOSE 80
# 启动Nginx
CMD ["nginx", "-g", "daemon off;"]