@echo off chcp 65001 > nul REM ──────────────────────────────────────────────────────────── REM GhiVideo 시연 실행 (Windows) REM 필요: Node.js 20+ 설치, 사전 빌드(npm install && npm run build) REM 사용: 이 파일 더블클릭 → 브라우저에서 http://localhost:54000 접속 REM ──────────────────────────────────────────────────────────── cd /d %~dp0 set PORT=54000 REM 저장 경로(저장소 루트 기준 상대) — 없으면 서버가 자동 생성 set VIDEOS_DIR=storage\videos set HLS_DIR=storage\hls set FRAMES_DIR=storage\frames set THUMBNAILS_DIR=storage\thumbnails set DB_PATH=storage\annotations.db if not exist server\dist\server\src\app.js ( echo [오류] 빌드 산출물이 없습니다. 먼저 실행하세요: npm install ^&^& npm run build pause exit /b 1 ) echo GhiVideo 서버 시작 — http://localhost:54000 (종료: Ctrl+C) start "" http://localhost:54000 node server\dist\server\src\app.js pause