Skip to content

FrankLaurance/whatToEat

 
 

Repository files navigation

whatToEat

今天吃什么?的决策工具,帮助你快速选择合适的菜谱。

License

项目介绍

whatToEat 是一个基于 Nuxt 构建的应用,旨在解决日常饮食选择的困扰。通过提供丰富的菜谱数据,帮助用户随机选择或筛选适合的菜品,轻松解决"今天吃什么"的难题。

快速开始

在线体验

直接访问 体验

本地运行

  1. 克隆仓库
git clone https://github.com/ryanuo/whatToEat.git
cd whatToEat
  1. 安装依赖
pnpm install
  1. 启动开发服务器
pnpm dev
  1. 在浏览器中访问 http://localhost:3000

构建部署

构建生产版本

pnpm build

预览构建结果

pnpm preview

部署选项

Netlify Vercel

Docker 部署

默认使用公开菜单(与原项目一致):https://eat.ryanuo.cc/recipes.json

docker compose up -d --build

Docker 部署(服务器不构建:从 GHCR 拉镜像运行)

仓库提交到 GitHub 后,会通过 GitHub Actions 自动构建并发布镜像到 GHCR。

在服务器上部署(无需构建):

docker pull ghcr.io/ryanuo/whattoeat:latest

docker run -d --name whattoeat \
	-p 3000:3000 \
	ghcr.io/ryanuo/whattoeat:latest

数据来源

菜谱数据来源于远程 JSON 接口,通过 server/routes/api/recipes.ts 进行获取和处理。

参考

许可证

本项目基于 MIT 许可证 开源。

About

今天吃什么?的决策工具,帮助你快速选择合适的菜谱。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Vue 81.9%
  • TypeScript 15.1%
  • Python 2.0%
  • Other 1.0%