Files
eene_dashboard/서버시작.bat
EENE Dashboard 22366dde72 Initial commit - EENE Dashboard
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 18:07:10 +09:00

46 lines
1.1 KiB
Batchfile

@echo off
chcp 65001 > nul
title EENE Dashboard Start
echo ================================
echo EENE Dashboard - Server Start
echo ================================
echo.
:: 1. PostgreSQL 서비스 확인 (직접 설치 시 자동 실행됨)
echo [1/3] Checking Database...
sc query postgresql-x64-16 | find "RUNNING" > nul 2>&1
if %errorlevel% neq 0 (
echo Starting PostgreSQL service...
net start postgresql-x64-16
)
echo Database is ready.
echo.
:: 2. 백엔드 서버
echo [2/3] Starting Backend Server...
start "EENE-Backend" cmd /k "cd /d "%~dp0backend" && npm run dev"
timeout /t 3 /nobreak > nul
echo Done.
echo.
:: 3. 프론트엔드 서버
echo [3/3] Starting Frontend Server...
start "EENE-Frontend" cmd /k "cd /d "%~dp0frontend" && npm run dev"
echo Done.
echo.
echo ================================
echo All servers are running!
echo.
echo [This PC]
echo Dashboard : http://localhost:3000
echo Detail : http://localhost:3000/detail
echo.
echo [Team Access]
echo Dashboard : http://172.16.8.248:3000
echo Detail : http://172.16.8.248:3000/detail
echo ================================
echo.
pause