Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

update script.bat

valzorbe9905f22dbc
diff --git a/script.bat b/script.bat
index 4815980..ad24649 100644
--- a/script.bat
+++ b/script.bat
@@ -12,6 +12,26 @@ if not exist "frontend\package.json" (
exit /b 1
)
+echo Installing backend dependencies...
+cd /d "%~dp0backend"
+call npm install
+if %errorlevel% neq 0 (
+ echo [ERROR] Backend npm install failed.
+ pause
+ exit /b 1
+)
+
+echo Installing frontend dependencies...
+cd /d "%~dp0frontend"
+call npm install
+if %errorlevel% neq 0 (
+ echo [ERROR] Frontend npm install failed.
+ pause
+ exit /b 1
+)
+
+cd /d "%~dp0"
+
start "Backend - API" cmd /k "cd /d ""%~dp0backend"" && npm run dev"
start "Frontend - Vite" cmd /k "cd /d ""%~dp0frontend"" && npm run dev"