835 B
835 B
Meal AI Starter (Vite + React)
Quick start
- Install dependencies
npm install
- Start the mock server (this simulates your AI endpoint)
npm run start:server
- In another terminal, run the frontend dev server
npm run dev
Notes
- Replace
server/index.jswith 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.