| @echo off | |
| echo ============================================ | |
| echo Invoice Extractor - Complete Setup | |
| echo ============================================ | |
| echo. | |
| echo [1/4] Installing Backend Dependencies... | |
| pip install -r requirements.txt | |
| if errorlevel 1 ( | |
| echo ERROR: Failed to install backend dependencies | |
| pause | |
| exit /b 1 | |
| ) | |
| echo β Backend dependencies installed | |
| echo. | |
| echo [2/4] Installing Frontend Dependencies... | |
| cd frontend | |
| call npm install | |
| if errorlevel 1 ( | |
| echo ERROR: Failed to install frontend dependencies | |
| pause | |
| exit /b 1 | |
| ) | |
| echo β Frontend dependencies installed | |
| echo. | |
| echo [3/4] Setting up Frontend Environment... | |
| if not exist .env ( | |
| copy .env.example .env | |
| echo β Created .env file | |
| ) else ( | |
| echo β .env file already exists | |
| ) | |
| cd .. | |
| echo. | |
| echo [4/4] Setup Complete! | |
| echo. | |
| echo ============================================ | |
| echo Ready to start the application! | |
| echo ============================================ | |
| echo. | |
| echo To start the backend: | |
| echo python app.py | |
| echo. | |
| echo To start the frontend: | |
| echo cd frontend | |
| echo npm run dev | |
| echo. | |
| echo Then open http://localhost:3000 in your browser | |
| echo ============================================ | |
| pause | |