-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.bat
More file actions
45 lines (37 loc) · 1.14 KB
/
Copy pathrun.bat
File metadata and controls
45 lines (37 loc) · 1.14 KB
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
39
40
41
42
43
44
45
@echo off
title Dave.903 Dashboard System v4.0.0
color 0b
echo #######################################################
echo # #
echo # DAVE.903 - AFK BOT & TAKIP PANELI #
echo # Surum: v4.0.0 STABLE #
echo # #
echo #######################################################
echo.
:: FFmpeg Check
where ffmpeg >nul 2>nul
if %errorlevel% neq 0 (
echo [!] HATA: FFmpeg sisteminizde yuklu degil. Medya yayini calismayacaktir.
echo [!] Lutfen FFmpeg'i yukleyin ve Path'e ekleyin.
pause
)
:: Node Modules Check
if not exist "node_modules" (
echo [!] node_modules bulunamadi. Yukleniyor...
call npm install
)
if not exist "server\node_modules" (
echo [!] Server node_modules bulunamadi. Yukleniyor...
cd server
call npm install
cd ..
)
echo.
echo [+] Sistem Hazirlaniyor...
echo [+] Backend Baslatiliyor... (Port: 3001)
echo [+] Frontend Baslatiliyor... (Port: 5173)
:: Start Backend in background
start /b cmd /c "cd server && node server.js"
:: Start Frontend
npm run dev
pause