29 lines
579 B
Batchfile
29 lines
579 B
Batchfile
@echo off
|
|
REM Run the os-league-tools React frontend development server
|
|
|
|
echo Starting OS League Tools Frontend...
|
|
echo.
|
|
|
|
REM Change to the frontend directory
|
|
cd /d "%~dp0os-league-tools-master"
|
|
|
|
REM Check if node_modules exists
|
|
if not exist "node_modules" (
|
|
echo node_modules not found. Running npm install...
|
|
npm install
|
|
if errorlevel 1 (
|
|
echo npm install failed!
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
echo Starting development server on http://localhost:3000
|
|
echo Press Ctrl+C to stop the server
|
|
echo.
|
|
|
|
REM Run the development server
|
|
npm run dev
|
|
|
|
pause
|