done
This commit is contained in:
38
start-windows.bat
Normal file
38
start-windows.bat
Normal file
@@ -0,0 +1,38 @@
|
||||
@echo off
|
||||
TITLE Secure Video & File Sharing Management System - Windows Launcher
|
||||
COLOR 0B
|
||||
echo ======================================================================
|
||||
echo Secure Video & File Sharing Management System (Windows)
|
||||
echo ======================================================================
|
||||
echo.
|
||||
|
||||
:: Check Node.js
|
||||
where node >nul 2>nul
|
||||
if %errorlevel% neq 0 (
|
||||
echo [ERROR] Node.js is not found in PATH! Please install Node.js 20+ from https://nodejs.org
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo [1/4] Generating Prisma Client and Shared Types...
|
||||
cmd /c "npm run prisma:generate --workspace=apps/backend"
|
||||
cmd /c "npm run build --workspace=@fileshare/shared"
|
||||
|
||||
echo [2/4] Ensuring storage directory exists on Windows filesystem...
|
||||
if not exist "storage" mkdir storage
|
||||
|
||||
echo [3/4] Checking Database Connectivity and applying migrations...
|
||||
cmd /c "npm run prisma:migrate:deploy --workspace=apps/backend"
|
||||
|
||||
echo [4/4] Starting Full-Stack Services (Backend on :4000, Frontend on :3000)...
|
||||
echo.
|
||||
echo ======================================================================
|
||||
echo Backend API: http://localhost:4000/api/v1
|
||||
echo Swagger Docs: http://localhost:4000/api/docs
|
||||
echo Frontend UI: http://localhost:3000
|
||||
echo ======================================================================
|
||||
echo.
|
||||
|
||||
npx concurrently --kill-others -n "BACKEND,FRONTEND" -c "cyan,magenta" ^
|
||||
"npm run start:dev --workspace=apps/backend" ^
|
||||
"npm run dev --workspace=apps/frontend"
|
||||
Reference in New Issue
Block a user