Merge pull request #159 from Gar-b-age/main

sync the progress
This commit is contained in:
荷雨头上插着薄荷🍀
2025-09-25 19:42:51 +08:00
committed by GitHub
26 changed files with 1349 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ import fs from 'node:fs'
import path from 'node:path'
const DOC_EXT = ['.md']
const EXCLUDED_DIRS = new Set(['.git', '.github', '.vitepress', 'node_modules', 'public'])
const EXCLUDED_DIRS = new Set(['.git', '.github', '.vitepress', 'node_modules', 'public', 'docs'])
function isDirectory(p) {
return fs.existsSync(p) && fs.statSync(p).isDirectory()

View File

@@ -2,7 +2,7 @@ import fs from 'node:fs'
import path from 'node:path'
const ROOT = process.cwd()
const EXCLUDED_DIRS = new Set(['.git', '.github', '.vitepress', 'node_modules', 'public'])
const EXCLUDED_DIRS = new Set(['.git', '.github', '.vitepress', 'node_modules', 'public', 'docs', 'images', 'docker_support'])
function isDirectory(p) {
return fs.existsSync(p) && fs.statSync(p).isDirectory()

View File

@@ -1,17 +1,29 @@
![pic](/banner.png)
<div align="center">
[**Docker Support**](./docker_support/README.md) | [**Development**](./docs/development.md)
</div>
# 像老乡鸡那样做饭
[**一些说明**](https://github.com/Gar-b-age/CookLikeHOC/issues/26)
仓库主体部分于2024年完工和2025年9月份的舆论事件无关。截止提交时仓库的贡献者们与老乡鸡的唯一关系只有消费者和商家的关系。本仓库不是老乡鸡的官方仓库。如果有任何问题或意见建议欢迎指出
**新更新**
## 新更新
- 炖菜已上线部分由ai配图的菜品但更欢迎大家来贡献实拍图
- 欢迎大家来贡献实拍图
- 现已上线网页端,[点击访问](https://cooklikehoc.soilzhu.su)
- Run with Docker? Check it out [here](https://github.com/Gar-b-age/CookLikeHOC/tree/main/docker_support), supported by [@honestAnt](https://github.com/honestAnt) in [PR #141](https://github.com/Gar-b-age/CookLikeHOC/pull/141)
- AI 绘制的手绘图版及AI配图流程版网页 [点击访问](https://ai.cooklikehoc.soilzhu.su), 手绘图由 [@liucongg](https://github.com/liucongg) 贡献,见 [PR #143](https://github.com/Gar-b-age/CookLikeHOC/pull/143)
---
[![link](/tg.png)](https://t.me/cooklikehoc)
《老乡鸡菜品溯源报告》中公布的所有菜品已经全部录入完,欢迎大家查阅和补充。
@@ -22,14 +34,14 @@
至于为什么仓库名要叫CookLikeHOC因为直接写Laoxiangji大概不方便阅读而Home Original Chicken是china daily报道中所使用的老乡鸡的英文名故简写成HOC。
Contributor
## Contributor
![cr](https://contrib.rocks/image?repo=Gar-b-age/CookLikeHOC)
Logo
## Logo
![pic](/logo.png)
Star History
[![Star History Chart](https://api.star-history.com/svg?repos=Gar-b-age/CookLikeHOC&type=Date)](https://star-history.com/#Gar-b-age/CookLikeHOC&Date)
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=Gar-b-age/CookLikeHOC&type=Date)](https://star-history.com/#Gar-b-age/CookLikeHOC&Date)

20
docker_support/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# ============================
# Prepare dist Environment
FROM node:22-alpine AS dist-env
WORKDIR /app
# 在安装 git 前设置镜像源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk add --no-cache git
COPY . .
RUN npm install --loglevel verbose
RUN npm run build
# ============================
# Prepare Runtime Environment
FROM nginx:1-alpine
COPY default.conf /etc/nginx/conf.d/
COPY --from=dist-env /app/.vitepress/dist/ /usr/share/nginx/html
EXPOSE 80

25
docker_support/README.md Normal file
View File

@@ -0,0 +1,25 @@
# Docker 打包运行说明
## 环境依赖
- Docker
## 打包
```bash
docker build -t cooklikehoc:0.0.1 -f Dockerfile .
```
## 运行
```bash
docker run -d --name cooklikehoc \
-p 3001:80 \
-e HOST=0.0.0.0 \
cooklikehoc:0.0.1
# 浏览器访问 http://localhost:3001/
```
## 效果
![alt text](image.png)
![alt text](image-1.png)
![alt text](image-2.png)

View File

@@ -0,0 +1,12 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
location / {
index index.html index.htm;
try_files $uri $uri/ /index.html;
add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
}
}

BIN
docker_support/image-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

BIN
docker_support/image-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

BIN
docker_support/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

1195
docker_support/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

67
docs/development.md Normal file
View File

@@ -0,0 +1,67 @@
# 本地开发
### 前置依赖
在开始之前,请确保你的开发环境中安装了 [Node.js](https://nodejs.org/) (推荐 v18.x 或更高版本)。
- **Windows:**
可以从 [Node.js 官网](https://nodejs.org/en/download/) 下载安装包进行安装。
或者使用包管理器 [Chocolatey](https://chocolatey.org/):
```bash
choco install nodejs
```
- **macOS:**
可以从 [Node.js 官网](https://nodejs.org/en/download/) 下载安装包进行安装。
或者使用包管理器 [Homebrew](https://brew.sh/):
```bash
brew install node
```
- **Linux:**
对于 Debian/Ubuntu 系统,可以使用 [NodeSource](https://github.com/nodesource/distributions) 来安装:
```bash
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
```
对于 RHEL/CentOS 系统:
```bash
curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -
sudo yum install -y nodejs
```
### 启动项目
1. 克隆代码仓库
```bash
git clone https://github.com/Gar-b-age/CookLikeHOC.git
```
2. 进入项目目录
```bash
cd CookLikeHOC
```
3. 安装依赖
```bash
npm install
```
4. 运行
```bash
npm run docs:dev
```
然后打开浏览器,访问
```
http://localhost:5173/
```
即可。

View File

@@ -1,6 +1,6 @@
# 清莴笋片
# 清莴笋片
![莴笋片](../images/清炒莴笋片.jpg)
![莴笋片](../images/清炒莴笋片.jpg)
## 配料

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

View File

@@ -2,8 +2,6 @@
![白菜炖豆腐](../images/白菜炖豆腐.jpg)
> 本文由 AI 配图,欢迎来贡献实拍图。
## 原料:
- 豆腐
- 大白菜
@@ -12,8 +10,6 @@
## 步骤:
- 1.下入 50g 大豆油、70g 熟猪油、30g 蒜子,炒出香味;
![](pic/白菜炖豆腐/1.jpeg)
- 2.下入 900g 水、炒菜基料包 1 袋、3 盒豆腐,炖烧入味;
![](pic/白菜炖豆腐/2.jpeg)
- 3.下入 800g 白菜段,烧开后转小火,再次炖烧入味。
![](pic/白菜炖豆腐/3.jpeg)

View File

@@ -2,7 +2,6 @@
![红烧鱼块](../images/红烧鱼块.png)
> 本文由 AI 配图,欢迎来贡献实拍图。
## 原料:

View File

@@ -2,7 +2,6 @@
![鸡血汤](../images/鸡血汤.png)
> 本文由 AI 配图,欢迎来贡献实拍图。
## 配料
- 鸡血
@@ -13,6 +12,4 @@
## 步骤
- 30g 鸡血用开水烫制 2 分钟后,冷却备用;
- 取鸡血、4g 蛋皮、4g 青菜烫制 10 秒后放入汤盅,
![](pic/鸡血汤/2.jpeg)
加入 310g 老鸡汤,葱花点缀出品。
![](pic/鸡血汤/3.jpeg)
加入 310g 老鸡汤,葱花点缀出品。

View File

@@ -1,5 +1,4 @@
# 麻婆豆腐
> 本文由 AI 配图,欢迎来贡献实拍图。
![麻婆豆腐](../images/麻婆豆腐.jpg)
@@ -12,5 +11,4 @@
## 步骤:
- 1. 锅中下入 700g 水、麻婆豆腐料 1 袋、4g 老抽,烧开;
- 2. 下入 5 盒分切后的豆腐,烧开后炖烧 3 分 30 秒;
- 3. 最后下入 80g 水淀粉,烧制 30 秒,使豆腐均匀裹上汤汁。
![](pic/麻婆豆腐/1.jpeg)
- 3. 最后下入 80g 水淀粉,烧制 30 秒,使豆腐均匀裹上汤汁。

View File

@@ -16,3 +16,7 @@
- 3. 腌制好的小母鸡放入蒸柜中蒸制 25 分钟;
- 4. 将蒸制后的小母鸡取出,分切为宽度 1.5 厘米、长度 6cm的块状
- 5. 菜品出品之前放入蒸柜蒸制 5 分钟,出品时淋上 75g 葱油鸡调料,撒上 1g 葱花点缀。
## 官方视频
<iframe src="//player.bilibili.com/player.html?isOutside=true&aid=1654957047&bvid=BV1M7421Z7wr&cid=1554945698&p=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>