# Smart Agriculture Web Application
## Prerequisites
- Python 3.10+
- Node.js 18+
## Backend Setup
```powershell
cd backend
python -m venv .venv
. .venv\Scripts\Activate.ps1
pip install -r requirements.txt
python -m app # starts FastAPI at
localhost
```
## Frontend Setup
```powershell
cd frontend
npm install
$env:VITE_API_BASE="
localhost" # optional
npm run dev #
localhost
```
## Features
- Input soil type, pH, temperature, humidity, rainfall, season and location
- Get analysis and crop recommendations with fertilizer, irrigation, pest tips
- Yield index visualization
- History saved in SQLite and accessible via GET /history