-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsrla_setup.bat
More file actions
76 lines (64 loc) · 1.57 KB
/
srla_setup.bat
File metadata and controls
76 lines (64 loc) · 1.57 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
@echo off
echo SRLA Project Setup Script
echo =========================
echo.
REM Check if Node.js is installed
where node >nul 2>nul
if %errorlevel% neq 0 (
echo ERROR: Node.js is not installed!
echo Please download and install Node.js from https://nodejs.org/
echo.
pause
exit /b 1
)
REM Check if Python is installed
where python >nul 2>nul
if %errorlevel% neq 0 (
echo ERROR: Python is not installed!
echo Please download and install Python from https://www.python.org/
echo Make sure to check "Add Python to PATH" during installation
echo.
pause
exit /b 1
)
echo Found Node.js and Python installations
echo.
REM Backend setup
echo Setting up Backend...
cd srla_webstack
if not exist venv (
echo Creating Python virtual environment...
python -m venv venv
)
echo Installing Python dependencies...
call venv\Scripts\activate
pip install -r requirements.txt
if not exist .env (
echo Creating .env file...
copy .env.example .env
echo Please edit srla_webstack\.env with your API keys
)
echo.
echo Backend setup complete!
echo.
REM Mobile app setup
echo Setting up Mobile App...
cd ..\srla-mobile
echo Installing npm dependencies...
call npm install
if not exist .env (
echo Creating .env file...
copy .env.example .env
)
echo.
echo Mobile app setup complete!
echo.
echo =========================
echo Setup Complete!
echo =========================
echo.
echo To start the project:
echo 1. Backend: cd srla_webstack && venv\Scripts\activate && python api/server.py
echo 2. Mobile: cd srla-mobile && npm start
echo.
pause