-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
36 lines (30 loc) Β· 846 Bytes
/
start.bat
File metadata and controls
36 lines (30 loc) Β· 846 Bytes
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
@echo off
REM Genrec Website Startup Script for Windows
echo π Starting Genrec Website...
REM Check if Node.js is installed
node --version >nul 2>&1
if %errorlevel% neq 0 (
echo β Node.js is not installed. Please install Node.js 16+ first.
pause
exit /b 1
)
REM Check if npm is installed
npm --version >nul 2>&1
if %errorlevel% neq 0 (
echo β npm is not installed. Please install npm first.
pause
exit /b 1
)
REM Install dependencies if node_modules doesn't exist
if not exist "node_modules" (
echo π¦ Installing dependencies...
npm install --legacy-peer-deps
)
REM Build the React app if build folder doesn't exist
if not exist "build" (
echo π¨ Building React app...
npm run build
)
REM Start the production server
echo π Starting production server on http://localhost:5000
npm start