前后端目录重命名: - reading-platform-java/ → lesingle-edu-reading-platform-backend/ - reading-platform-frontend/ → lesingle-edu-reading-platform-frontend/ 更新相关文件: - 所有 shell 脚本中的目录引用 - pom.xml 和 application.yml 中的项目名称 - package.json 中的项目名称 - .claude/CLAUDE.md 中的路径引用 - README 文档中的路径引用
19 lines
314 B
Bash
19 lines
314 B
Bash
#!/bin/bash
|
|
|
|
# 前端启动脚本
|
|
# 确保从正确目录启动
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
echo "🚀 正在启动前端服务..."
|
|
echo "📂 工作目录: $(pwd)"
|
|
|
|
# 检查 node_modules 是否存在
|
|
if [ ! -d "node_modules" ]; then
|
|
echo "📦 正在安装依赖..."
|
|
npm install
|
|
fi
|
|
|
|
# 启动前端
|
|
npm run dev
|