|
|
6 月之前 | |
|---|---|---|
| .kiro | 7 月之前 | |
| public | 7 月之前 | |
| src | 6 月之前 | |
| .env.example | 6 月之前 | |
| .gitignore | 7 月之前 | |
| .nvmrc | 7 月之前 | |
| README.md | 6 月之前 | |
| build.sh | 7 月之前 | |
| index.html | 7 月之前 | |
| netlify-build.js | 7 月之前 | |
| netlify.toml | 7 月之前 | |
| package-lock.json | 7 月之前 | |
| package.json | 7 月之前 | |
| postcss.config.js | 7 月之前 | |
| tailwind.config.js | 7 月之前 | |
| tsconfig.json | 7 月之前 | |
| tsconfig.node.json | 7 月之前 | |
| vite.config.prod.ts | 7 月之前 | |
| vite.config.ts | 7 月之前 |
🚀 Vibe Coding 通过 Kiro 编辑器,实现了从需求分析、架构设计到代码实现的全流程开发。
一个基于 AI 的智能菜谱生成平台,支持中华八大菜系 + 国际料理,提供营养分析、酒水推荐、菜谱效果图生成等全方位烹饪指导。
中华八大菜系:
国际料理:
# 克隆项目
git clone https://github.com/liu-ziting/what-to-eat.git
cd what-to-eat
# 安装依赖
npm install
# 配置环境变量
cp .env.example .env
# 编辑 .env 文件,添加你的 AI API 密钥
# 启动开发服务器
npm run dev
# 菜谱生成模型配置(文本生成)- 零一万物(默认)
VITE_TEXT_GENERATION_BASE_URL=https://api.lingyiwanwu.com/v1/
VITE_TEXT_GENERATION_API_KEY=your_text_api_key_here
VITE_TEXT_GENERATION_MODEL=yi-lightning
VITE_TEXT_GENERATION_TEMPERATURE=0.7
VITE_TEXT_GENERATION_TIMEOUT=300000
# 菜谱生成模型配置(文本生成)- Deepseek(备选)
# VITE_TEXT_GENERATION_BASE_URL=https://api.deepseek.com/v1/
# VITE_TEXT_GENERATION_API_KEY=your_deepseek_api_key_here
# VITE_TEXT_GENERATION_MODEL=deepseek-chat
# VITE_TEXT_GENERATION_TEMPERATURE=0.7
# VITE_TEXT_GENERATION_TIMEOUT=300000
# 图片生成模型配置
VITE_IMAGE_GENERATION_BASE_URL=https://open.bigmodel.cn/api/paas/v4/
VITE_IMAGE_GENERATION_API_KEY=your_image_api_key_here
VITE_IMAGE_GENERATION_MODEL=cogview-3-flash
src/
├── components/
│ ├── ConfirmModal.vue
│ ├── CookingLoader.vue
│ ├── FavoriteButton.vue
│ ├── FortuneCard.vue
│ ├── GlobalFooter.vue
│ ├── GlobalNavigation.vue
│ ├── ImageModal.vue
│ ├── NotesModal.vue
│ ├── NutritionAnalysis.vue
│ ├── RecipeCard.vue
│ ├── RecipeModal.vue
│ ├── SauceRecipe.vue
│ └── WinePairing.vue
├── config/
│ ├── ai.ts
│ ├── cuisines.ts
│ ├── fortune.ts
│ ├── ingredients.ts
│ └── sauces.ts
├── services/
│ ├── aiService.ts
│ ├── favoriteService.ts
│ ├── galleryService.ts
│ └── imageService.ts
├── types/
│ └── index.ts
├── utils/
│ └── sauceHelpers.ts
├── views/
│ ├── About.vue
│ ├── Favorites.vue
│ ├── FortuneCooking.vue
│ ├── Gallery.vue
│ ├── Home.vue
│ ├── HowToCook.vue
│ ├── SauceDesign.vue
│ ├── TableDesign.vue
│ └── TodayEat.vue
└── App.vue
🍽️ 让 AI 厨艺大师为你的食材注入灵魂,创造属于你的美味传奇!
一饭封神 - 不只是菜谱,更是烹饪的艺术与科学 ✨