feat: 添加学生个人中心页面和数据库备份功能
refactor(auth): 重构认证模块适配Bootstrap 5样式 feat(controller): 在登录响应中返回用户对象 feat(server): 添加学生个人中心路由 refactor(models): 重构学生和成绩模型结构 style: 更新登录和注册页面UI设计 chore: 添加数据库备份脚本和空备份文件
This commit is contained in:
@@ -1,26 +1,13 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
echo Checking if WebWork is already running...
|
||||
|
||||
:: 查找占用 3000 端口的进程 PID
|
||||
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :3000 ^| findstr LISTENING') do (
|
||||
set PID=%%a
|
||||
if not "!PID!"=="" (
|
||||
echo Port 3000 is already in use by PID !PID!. Killing process...
|
||||
taskkill /F /PID !PID!
|
||||
)
|
||||
)
|
||||
|
||||
echo Starting WebWork System...
|
||||
|
||||
:: 使用简单的语法避免编码引起的解析错误
|
||||
cd /d %~dp0
|
||||
cd ..\backend
|
||||
|
||||
if not exist node_modules (
|
||||
echo node_modules not found, installing dependencies...
|
||||
call npm install
|
||||
echo Checking port 3000...
|
||||
for /f "tokens=5" %%a in ('netstat -ano ^| findstr :3000 ^| findstr LISTENING') do (
|
||||
taskkill /F /PID %%a
|
||||
)
|
||||
|
||||
echo Starting Backend Server...
|
||||
start http://localhost:3000
|
||||
npm start
|
||||
npm start
|
||||
Reference in New Issue
Block a user