From ad9fb843f43edd43642ed4578059f0e565ced643 Mon Sep 17 00:00:00 2001
From: zy7y <13271962515@163.com>
Date: Sun, 28 Apr 2024 21:17:16 +0800
Subject: [PATCH] =?UTF-8?q?feat=20#35=20=E5=A2=9E=E5=8A=A0=E6=BA=90?=
=?UTF-8?q?=E7=A0=81=E8=BF=90=E8=A1=8C=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.github/workflows/build_client.yml | 2 +-
README.md | 61 +++++++++++++++++++++++++++---
docs/CHANGELOG.md | 10 +++++
3 files changed, 67 insertions(+), 6 deletions(-)
create mode 100644 docs/CHANGELOG.md
diff --git a/.github/workflows/build_client.yml b/.github/workflows/build_client.yml
index 07cb735..30ba0cd 100644
--- a/.github/workflows/build_client.yml
+++ b/.github/workflows/build_client.yml
@@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
- os: [ windows-latest, macos-latest, ubuntu-latest ]
+ os: [ windows-latest, macos-latest ]
steps:
- name: 拉代码
uses: actions/checkout@v3
diff --git a/README.md b/README.md
index 9819e68..708b291 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,61 @@
> 使用过程中有疑问、或其他宝贵意见 -> [issues](https://github.com/zy7y/dfs-generate/issues),如果你对这个项目感兴趣,欢迎加入共同实现,
-## Star History
+# 源码运行
+
+查看详情
+
+> 注意:开发使用环境 Node18.15 Python3.11,不低于该要求最佳。
+
+## 1. 下载源码
+```shell
+git clone https://github.com/zy7y/dfs-generate.git
+```
+
+> 以下命令均在源码根目录执行
+## 2. 前端
+### 进入目录
+```shell
+cd web
+```
+### 安装依赖
+```shell
+npm i
+```
+### 打包编译
+```shell
+npm run build
+```
+
+## 3. 后端
+### 虚拟环境(可选)
+```shell
+python -m venv venv
+
+# windows 激活虚拟环境
+venv\Scripts\activate
+
+# mac 、linux 激活虚拟环境
+source venv/bin/activate
+```
+### 安装依赖
+```shell
+pip install -r requirements.txt
+```
+### 运行
+```shell
+python dfs_generate/server.py
+```
+### 访问
+> 注意:端口8080,请确保该端口未被占用
+```shell
+http://127.0.0.1:8080
+```
+
+
+# [更新日志](/docs/CHANGELOG.md)
+
+# Star History
[![Star History Chart](https://api.star-history.com/svg?repos=zy7y/dfs-generate&type=Date)](https://star-history.com/#zy7y/dfs-generate&Date)
@@ -26,11 +80,8 @@
-
-WeChat打赏
+# 赞赏
![wechat](docs/wechat.jpeg)
-
-
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
new file mode 100644
index 0000000..105d9dd
--- /dev/null
+++ b/docs/CHANGELOG.md
@@ -0,0 +1,10 @@
+# Change Log
+
+## Release v0.2.0 (2024-04-27)
+- #30 支持Tortoise ORM 代码生成
+- #27 移除依赖`FastAPI`,`SQLAlchemy`,`Pydantic`,`Uvicorn`, `Jinja2`...
+- 优化目录结构
+
+## Release v0.1.x (2023-12 ~ 2023-04-27)
+- 支持SQLModel
+- 生成FastAPI接口`详情查询`,`更新`,`新增`,`删除`,`分页查询`
\ No newline at end of file