32 lines
835 B
Markdown
32 lines
835 B
Markdown
# Meal AI Starter (Vite + React)
|
|
|
|
## Quick start
|
|
|
|
1. Install dependencies
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
2. Start the mock server (this simulates your AI endpoint)
|
|
|
|
```bash
|
|
npm run start:server
|
|
```
|
|
|
|
3. In another terminal, run the frontend dev server
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
4. Open http://localhost:5173
|
|
|
|
|
|
## Notes
|
|
- Replace `server/index.js` with your real AI provider call (OpenAI, Anthropic, or your own) to produce `{"mealPlan":[],"groceryList":[]}` JSON output.
|
|
- Grocery lists are saved locally to IndexedDB and visible in the Grocery pane even when offline (PWA cache required).
|
|
- For packaging into desktop/mobile, wrap the web build with Tauri/Capacitor/Expo and ship the real server or point to your hosted AI.
|
|
|
|
That's everything in the starter. Run `npm install`, `npm run start:server`, then `npm run dev` to try it locally.
|