https://github.com/b1f6c1c4/c
c for cook: 根据食材列表自动推荐菜谱
https://github.com/b1f6c1c4/c
cookbook eating food recipes
Last synced: about 2 months ago
JSON representation
c for cook: 根据食材列表自动推荐菜谱
- Host: GitHub
- URL: https://github.com/b1f6c1c4/c
- Owner: b1f6c1c4
- License: mit
- Created: 2021-02-10T23:04:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-04T00:06:18.000Z (about 4 years ago)
- Last Synced: 2025-03-19T03:55:54.936Z (2 months ago)
- Topics: cookbook, eating, food, recipes
- Language: JavaScript
- Homepage:
- Size: 83 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# c-for-cook
> 根据食材列表自动推荐菜谱
- 食材来自 https://monday.com/ (需手工维护列表)
- 菜谱来自 http://www.recipepuppy.com/
- 每次刷新页面自动推荐12道正餐和2道方便菜品
- 无任何广告,无任何JavaScript
- 中英文对照,增加词汇量## Usage
Note: You may want to leverage the [pre-built docker image](https://hub.docker.com/r/b1f6c1c4/c-for-cook)
1. 创建`secret.json5`:
```json5
{
monday: {
apiKey: "...", // 左下角头像->Admin->API
bId: ..., // 打开对应的board,从URL中可以直接找到
cIds: { // 见下方说明
key: '...',
category: '...',
location: '...',
expire: '...',
quantity: '...',
genre: '...',
tier: '...',
},
},
translate: { // Google Translate API
apiKey: "...",
},
}
```关于`cIds`:在 https://monday.com/developers/v2/try-it-yourself 执行以下查询:
```
{
boards(ids: ...) { // 填入bId
columns {
id
title
}
}
}
```1. 执行`npm i -g nodemon`
1. 执行`npm i`
1. 执行`npm start`
1. 访问`http://localhost:3000`