kindergarten/reading-platform-backend/start-backend.sh
tonytech 7f757b6a63 初始提交:幼儿园阅读平台三端代码
- reading-platform-backend:NestJS 后端
- reading-platform-frontend:Vue3 前端
- reading-platform-java:Spring Boot 服务端
2026-02-28 17:51:15 +08:00

19 lines
320 B
Bash

#!/bin/bash
# 后端启动脚本
# 确保从正确目录启动
cd "$(dirname "$0")"
echo "🚀 正在启动后端服务..."
echo "📂 工作目录: $(pwd)"
# 检查 node_modules 是否存在
if [ ! -d "node_modules" ]; then
echo "📦 正在安装依赖..."
npm install
fi
# 启动后端
npm run start:dev