PozoAppUptoWebinar/START-SERVER.bat

36 lines
849 B
Batchfile
Raw Permalink Normal View History

@echo off
2025-11-19 17:26:31 +05:30
echo 🚀 Starting POZO Local Server...
echo.
2025-11-19 17:26:31 +05:30
REM Set development environment
set NODE_ENV=development
set ENV_MAIN_BASE_URL=http://localhost:3000
set ENV_BASE_URL=/
set ENV_API_URL=https://api.pozo.dev/pozo-common-api
set ENV_API_URL_TOKEN=https://api.pozo.dev/JwtToken
set ENV_API_URL_RETAIL=https://api.pozo.dev/pozo-retail-api
echo ✅ Environment variables set for development
echo.
REM Check if dist folder exists, if not build it
2025-11-19 17:26:31 +05:30
if not exist dist (
echo ❌ dist folder not found! Building project...
call npm run build
if errorlevel 1 (
echo ❌ Build failed!
pause
exit /b 1
)
echo ✅ Build completed
)
2025-11-19 17:26:31 +05:30
echo 📁 dist folder found
echo.
REM Start the server
2025-11-19 17:26:31 +05:30
echo 🌐 Starting server on http://localhost:3000
echo Press Ctrl+C to stop the server
echo.
node server/server.js
2025-11-19 17:26:31 +05:30
pause