36 lines
849 B
Batchfile
36 lines
849 B
Batchfile
@echo off
|
|
echo 🚀 Starting POZO Local Server...
|
|
echo.
|
|
|
|
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
|
|
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
|
|
)
|
|
|
|
echo 📁 dist folder found
|
|
echo.
|
|
|
|
REM Start the server
|
|
echo 🌐 Starting server on http://localhost:3000
|
|
echo Press Ctrl+C to stop the server
|
|
echo.
|
|
node server/server.js
|
|
pause |