-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
72 lines (59 loc) · 1.53 KB
/
Copy pathsetup.bat
File metadata and controls
72 lines (59 loc) · 1.53 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
@echo off
REM Quick start script for Spot Command Center (Windows)
echo 🤖 Spot Robot Command Center - Quick Start (Windows)
echo =====================================================
where python >nul 2>nul
if %errorlevel% neq 0 (
echo ❌ Python not found. Please install Python 3.8+
exit /b 1
)
where node >nul 2>nul
if %errorlevel% neq 0 (
echo ❌ Node.js not found. Please install Node.js 16+
exit /b 1
)
for /f "tokens=*" %%i in ('python --version') do set PYTHON_VERSION=%%i
echo ✓ %PYTHON_VERSION%
for /f "tokens=*" %%i in ('node --version') do set NODE_VERSION=%%i
echo ✓ Node %NODE_VERSION%
echo.
echo Setting up backend...
cd backend
if not exist "venv\" (
echo Creating Python virtual environment...
python -m venv venv
)
call venv\Scripts\activate.bat
pip install -q -r requirements.txt
echo ✓ Backend dependencies installed
if not exist ".env" (
echo Creating .env file from template...
copy .env.example .env
echo ⚠️ Edit backend\.env with your robot^'s IP address
)
cd ..
echo.
echo Setting up frontend...
cd frontend
if not exist "node_modules" (
echo Installing npm dependencies...
call npm install -q
)
echo ✓ Frontend dependencies installed
cd ..
echo.
echo ✅ Setup complete!
echo.
echo To start the application:
echo.
echo Command Prompt 1 (Backend^):
echo cd backend
echo venv\Scripts\activate.bat
echo python app.py
echo.
echo Command Prompt 2 (Frontend^):
echo cd frontend
echo npm start
echo.
echo Then open http://localhost:3000 in your browser
echo.