GreenBuild AI is a full-stack sustainable construction workflow app built with React 18, Vite, Tailwind CSS, FastAPI, Gemini 1.5 Pro, Open-Meteo, fpdf2, and local JSON storage.
- 5-step project intake form for building parameters
- Async backend analysis jobs with polling
- Open-Meteo climate enrichment
- Gemini 1.5 Pro structured material recommendations across 10 building components
- Cinematic dark dashboard with charts and component drill-down
- PDF report download
- Floating follow-up chat widget with streaming responses
greenbuild-ai/
backend/
frontend/
.env
.vscode/tasks.json
Navigate to the backend directory:
cd backendCreate and activate a virtual environment:
python -m venv .venv
.\.venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtSet your Gemini key in the .env file at the root of the project.
Start the API:
python -m uvicorn app.main:app --reload --host 127.0.0.1 --port 8001Navigate to the frontend directory:
cd frontendInstall dependencies:
npm installStart the development server:
npm run devThe Vite app runs on http://localhost:5173 and expects the API at http://localhost:8000.
Press Ctrl+Shift+B and choose the default build task to launch both servers in parallel using .vscode/tasks.json.
POST /analyzeGET /status/{job_id}GET /results/{slug}GET /report/{slug}POST /chat/{slug}GET /climate?location=...
- If
GEMINI_API_KEYis missing, the backend falls back to a deterministic mock analysis so the app still runs locally. - Analysis and chat results are persisted in db.json after first run.