-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
49 lines (44 loc) · 1.21 KB
/
setup.bat
File metadata and controls
49 lines (44 loc) · 1.21 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
@echo off
echo AirAlert Pro - Setup Script
echo ==========================
echo Setting up backend...
cd backend
if not exist ".env" (
echo NASA_TOKEN=your_nasa_token_here > .env
echo OPENAQ_API_KEY=your_openaq_api_key_here >> .env
echo Created backend .env file - please update with your actual API keys
) else (
echo Backend .env file already exists
)
echo Installing backend dependencies...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo Failed to install backend dependencies. Please check your Python installation.
pause
exit /b %errorlevel%
)
echo.
echo Setting up frontend...
cd ../frontend
if not exist ".env" (
echo VITE_API_URL=http://localhost:5000 > .env
echo Created frontend .env file
) else (
echo Frontend .env file already exists
)
echo Installing frontend dependencies...
npm install
if %errorlevel% neq 0 (
echo Failed to install frontend dependencies. Please check your Node.js installation.
pause
exit /b %errorlevel%
)
echo.
echo Setup complete!
echo.
echo To run the application:
echo 1. Start the backend: cd backend ^& python app.py
echo 2. Start the frontend: cd frontend ^& npm run dev
echo.
echo Visit http://localhost:5173 in your browser
pause