# EatSmart-Ghana
EatSmart Ghana — a small Vite + React app that provides culturally-aware diet recommendations for Ghanaian foods. The assistant "Adwoa" can be backed by an external AI provider via a secure serverless proxy.
Quick start
-----------
1. Install dependencies:
```bash
npm install
```
2. Run in development:
```bash
npm run dev
```
3. Build for production:
```bash
npm run build
```
AI integration
--------------
- Configure the following environment variables in Vercel (or locally when using `vercel dev`):
- `AI_API_URL` — Upstream provider endpoint (e.g. Vercel AI or OpenAI chat/completions).
- `AI_API_KEY` — API key for the provider.
- The serverless proxy is `api/adwoa.js` and will forward requests to the upstream provider without exposing the API key to the browser.
Deploying to Vercel
-------------------
1. Push this repository to GitHub.
2. Import the repo in Vercel and set the environment variables in the project settings.
3. Vercel will detect the Vite app and run `npm run build` automatically.
Notes and troubleshooting
-------------------------
- The project uses the Node `fetch` API in the serverless proxy. Vercel runs on Node 18+ where `fetch` is available.
- If `git push` fails due to authentication, ensure you have an SSH key or personal access token configured.