Skip to content
/ c Public

c for cook: 根据食材列表自动推荐菜谱

License

Notifications You must be signed in to change notification settings

b1f6c1c4/c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 4, 2021
6f925cd · Mar 4, 2021

History

26 Commits
Feb 12, 2021
Feb 15, 2021
Feb 15, 2021
Feb 12, 2021
Feb 11, 2021
Feb 12, 2021
Feb 12, 2021
Feb 15, 2021
Feb 12, 2021
Mar 4, 2021
Mar 4, 2021

Repository files navigation

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

  1. 创建secret.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
            }
        }
    }
    
  2. 执行npm i -g nodemon

  3. 执行npm i

  4. 执行npm start

  5. 访问http://localhost:3000