material_manage_system/启动项目.bat
2026-09-20 11:18:00 +08:00

25 lines
631 B
Batchfile

@echo off
title Warehouse Management System Launcher
cd /d "%~dp0"
echo Starting backend (8082)...
rem Run the current source so local testing never uses an outdated server.exe.
start "Warehouse MMS - Backend" /D "%~dp0" cmd /k "go run ./cmd/server"
echo Starting frontend (8083)...
start "Warehouse MMS - Frontend" /D "%~dp0frontend" cmd /k "npm run dev"
echo.
echo Frontend: http://localhost:8083
echo Backend: http://localhost:8082
echo.
rem Open the browser automatically after 3 seconds.
timeout /t 3 /nobreak >nul
start "" "http://localhost:8083"
rem Keep this launcher window open until a key is pressed.
echo.
pause