-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-local.bat
More file actions
93 lines (81 loc) · 2.51 KB
/
run-local.bat
File metadata and controls
93 lines (81 loc) · 2.51 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@echo off
echo Starting INTERN.ME - Local Development Mode
echo ===========================================
echo.
echo NOTE: This will run the application without Docker
echo You'll need Python 3.11+ and Node.js 18+ installed
echo.
REM Check if Python is installed
echo Checking Python installation...
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.11+ from https://www.python.org/downloads/
echo Make sure to check "Add Python to PATH" during installation
pause
exit /b 1
)
REM Check if Node.js is installed
echo Checking Node.js installation...
node --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Node.js is not installed or not in PATH
echo Please install Node.js 18+ from https://nodejs.org/
pause
exit /b 1
)
REM Check if npm is installed
echo Checking npm installation...
npm --version >nul 2>&1
if errorlevel 1 (
echo ERROR: npm is not installed
echo Please install Node.js which includes npm
pause
exit /b 1
)
echo.
echo All prerequisites found!
echo.
echo Starting INTERN.ME in local development mode...
echo.
echo IMPORTANT: You'll need to set up PostgreSQL and Redis separately
echo For now, we'll start with a simplified version
echo.
REM Create virtual environment for backend
echo Setting up Python virtual environment...
cd backend
python -m venv venv
call venv\Scripts\activate.bat
REM Install Python dependencies
echo Installing Python dependencies...
pip install -r requirements.txt
REM Start backend
echo Starting backend server...
echo Backend will be available at: http://localhost:8000
start cmd /k "cd backend && call venv\Scripts\activate.bat && uvicorn main:app --reload --host 0.0.0.0 --port 8000"
REM Wait a bit for backend to start
timeout /t 5 /nobreak >nul
REM Go back to root and start frontend
cd ..\frontend
REM Install Node.js dependencies
echo Installing Node.js dependencies...
npm install
REM Start frontend
echo Starting frontend server...
echo Frontend will be available at: http://localhost:3000
start cmd /k "cd frontend && npm start"
echo.
echo ===========================================
echo INTERN.ME is starting up!
echo.
echo Backend: http://localhost:8000
echo Frontend: http://localhost:3000
echo API Docs: http://localhost:8000/docs
echo.
echo Both servers are starting in separate windows.
echo Close those windows to stop the servers.
echo.
echo NOTE: You'll need to install PostgreSQL and Redis
echo for full functionality. See SETUP-GUIDE.md for details.
echo.
pause