# Ghana Growers Website/PWA
A mobile-first Next.js + Tailwind CSS website for Ghana Growers, connecting farmers, buyers, and agricultural suppliers in Ghana.
## Quick Start
```bash
npm install
npm run dev
```
Open `
localhost`.
## Project Structure
```text
src/app/ App Router pages and SEO metadata
src/components/ Reusable UI components
src/data/ Easy-to-edit content files
public/manifest.json PWA manifest
public/sw.js Lightweight service worker
public/images/ Placeholder visual assets
```
## Common Edits
- WhatsApp number: edit `WHATSAPP_NUMBER` in `src/data/site.ts`.
- Products and marketplace categories: edit `src/data/products.ts`.
- Blog posts and learning content: edit `src/data/blog.ts`.
- Service page content: edit `src/data/services.ts`.
- Farmer directory placeholders: edit `src/data/farmers.ts`.
- Farmer Tools market prices: edit `src/data/marketPrices.json`.
- Farmer Tools locations: edit `src/data/weatherLocations.ts`.
- Buyer requests board: edit `src/data/buyerRequests.json`.
- WhatsApp community invite links: edit `src/data/whatsappCommunities.ts`.
- Farmer registration notification recipients: edit `src/data/notificationConfig.ts`.
- Buyer registration notification recipients: edit `src/data/notificationConfig.ts`.
- Supplier registration notification recipients: edit `src/data/notificationConfig.ts`.
## Farmer Tools Integrations
- Weather uses the free Open-Meteo API directly from the frontend.
- Farm Help Assistant uses `src/app/api/farmer-assistant/route.ts` and calls OpenAI from the server using `OPENAI_API_KEY`.
- Crop Health Check uses `src/app/api/crop-health/route.ts`, ready for Plant.id, Crop.health, Plantix, or a similar provider.
- Keep API keys in environment variables on the server. Do not expose provider keys in frontend components.
### Farm Help Assistant Setup
The chat UI lives in `src/components/smart-solutions/FarmerAssistant.tsx` and is displa …