forked from Burial0268/Lyric-Atlas-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.bat
More file actions
38 lines (32 loc) · 803 Bytes
/
Copy pathdev.bat
File metadata and controls
38 lines (32 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
chcp 65001 >nul
title Lyric Atlas API - Dev Server
echo ========================================
echo Lyric Atlas API - Development Server
echo ========================================
echo.
cd /d "%~dp0"
if not exist ".env" (
echo [ERROR] .env file not found!
echo Please create .env file first.
pause
exit /b 1
)
if not exist "node_modules" (
echo [INFO] Installing dependencies...
pnpm install
echo.
)
echo [INFO] Starting development server...
echo [INFO] Main API: http://localhost:3000
echo [INFO] Cache Admin: http://localhost:8300
echo.
echo Press Ctrl+C to stop the server.
echo ========================================
echo.
pnpm run dev
if errorlevel 1 (
echo.
echo [ERROR] Dev server exited with an error. Code: %errorlevel%
pause
)