initial commit
This commit is contained in:
31
README.md
Normal file
31
README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user