# supercode **Repository Path**: xiangchengkang/supercode ## Basic Information - **Project Name**: supercode - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-30 - **Last Updated**: 2026-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 前端antd打包 cd c:\projects\supercode\frontend pnpm install pnpm run build:antd # 后端打包 cd c:\projects\supercode\backend mvn clean package -pl yudao-server -am -DskipTests "D:\Program Files\microsoft-jdk-17.0.18-windows-x64\jdk-17.0.18+8\bin\java" -jar yudao-server.jar >> server.log 2>&1 # nginx nginx -s reload ## 📋 项目结构 ``` supercode/ ├── frontend/ # 前端项目 │ └── apps/ │ └── web-antd/ # 主应用(Vue 3 + Ant Design Vue) └── backend/ # 后端项目(Spring Boot + MySQL) ``` ## 🚀 快速开始 ### 前置要求 - **Node.js** >= 18.0.0 - **pnpm** >= 8.0.0 - **Java** >= 17 - **Maven** >= 3.8.0 - **MySQL** >= 8.0 - **Docker Desktop** (可选,用于运行数据库) ### 环境配置 #### 1. 前端环境变量 复制 `.env.example` 文件为 `.env`,并修改相应配置: ```bash cd frontend/apps/web-antd cp .env.example .env ``` **重要配置项:** - `VITE_APP_STORE_SECURE_KEY`: 更换为你自己的密钥 - `VITE_APP_API_ENCRYPT_REQUEST_KEY`: API 加密请求密钥 - `VITE_APP_API_ENCRYPT_RESPONSE_KEY`: API 加密响应密钥 - `VITE_APP_BAIDU_CODE`: 百度统计代码(可选) #### 2. 后端配置 根据你的实际环境修改后端配置文件: - 数据库连接信息 - Redis 连接信息 - 其他第三方服务配置 ### 安装依赖 #### 前端 ```bash cd frontend pnpm install ``` #### 后端 ```bash cd backend mvn clean install ``` ### 运行项目 #### 前端开发模式 ```bash cd frontend/apps/web-antd pnpm dev ``` 访问:http://localhost:5666 #### 后端 ```bash cd backend mvn spring-boot:run ``` 或者打包运行: ```bash mvn clean package -DskipTests java -jar target/supercode-backend-1.0.0.jar ``` 后端 API:http://localhost:48080 ## 🔒 安全提示 ### ⚠️ 上传前必做检查 在将项目上传到 GitHub 或其他公开平台前,请务必: 1. **检查 `.gitignore` 是否生效** ```bash git status ``` 确保敏感文件未被追踪 2. **敏感信息清单** - ❌ 不要上传真实的密钥和密码 - ❌ 不要上传 `.env` 文件(已在 .gitignore 中) - ❌ 不要上传数据库配置(生产环境) - ❌ 不要上传 API 密钥 - ✅ 只上传 `.env.example` 示例文件 3. **已配置忽略的文件/目录** - `node_modules/` - 依赖包 - `target/` - Java 构建产物 - `dist/` - 前端构建产物 - `*.log` - 日志文件 - `.env.local` - 本地环境变量 - `*.key`, `*.pem` - 证书和密钥文件 4. **清理历史提交中的敏感信息** 如果之前已经提交过敏感信息,需要清理 Git 历史: ```bash # 使用 git-filter-repo 工具 pip install git-filter-repo git filter-repo --path 敏感文件路径 --invert-paths ```