Files
QQuiz/start_frontend_only.bat
handsomezhuzhu 018ed27099 🔧 Fix frontend warnings and add diagnostic tools
Fix:
- Add type: module to package.json to eliminate ES module warning
- Create separate backend/frontend startup scripts
- Add system status check tool

New files:
- check_status.bat: Diagnose system status
- start_backend_only.bat: Start backend separately
- start_frontend_only.bat: Start frontend separately

🚀 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 13:54:05 +08:00

35 lines
722 B
Batchfile

@echo off
title QQuiz Frontend Server
color 0B
echo.
echo ========================================
echo Starting QQuiz Frontend Server
echo ========================================
echo.
cd /d "%~dp0frontend"
if not exist "node_modules" (
echo Installing dependencies (first time only)...
call npm config set registry https://registry.npmmirror.com
call npm install
)
echo.
echo ========================================
echo Frontend Server Starting...
echo ========================================
echo.
echo Frontend URL: http://localhost:3000
echo.
echo Make sure backend is running on port 8000!
echo.
echo Press Ctrl+C to stop
echo ========================================
echo.
npm start
pause