-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-dev.bat
More file actions
57 lines (48 loc) · 1.55 KB
/
Copy pathstart-dev.bat
File metadata and controls
57 lines (48 loc) · 1.55 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo off
REM Quick Start Script for FinPridict Full Stack
REM This script opens two terminals - one for Flask, one for Next.js
echo =====================================================
echo FinPridict Full Stack - Quick Start
echo =====================================================
echo.
echo Starting Backend (Flask) and Frontend (Next.js)...
echo.
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Python is not installed or not in PATH
pause
exit /b 1
)
REM Check if Node is installed
node --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Node.js is not installed or not in PATH
pause
exit /b 1
)
REM Start Backend in new window
echo Starting Flask Backend...
start "FinPridict Backend" cmd /k "cd /d d:\maitrey\SGP_2-main && venv\Scripts\activate && python app.py"
REM Wait a bit for backend to start
timeout /t 3 /nobreak
REM Start Frontend in new window
echo Starting Next.js Frontend...
start "FinPridict Frontend" cmd /k "cd /d d:\maitrey\SGP_2-main\frontend && npm run dev"
REM Wait for servers to start
timeout /t 5 /nobreak
REM Open browser
echo Opening application in browser...
timeout /t 2 /nobreak
start http://localhost:3000/prediction
echo.
echo =====================================================
echo FinPridict is running!
echo =====================================================
echo.
echo Frontend: http://localhost:3000
echo Backend: http://localhost:5000
echo Prediction Page: http://localhost:3000/prediction
echo.
echo Press any key to close this window...
pause