Skip to content

Commit

Permalink
Merge pull request #20 from zy7y/zy7y-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
zy7y authored Jan 20, 2024
2 parents 8726b6b + 92ba03d commit f26bf5c
Showing 1 changed file with 3 additions and 35 deletions.
38 changes: 3 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
3. [fastapi-crudrouter](https://fastapi-crudrouter.awtkns.com/) 内部通过add_router方式注册路由,虽然代码减少了,但是灵活性变低了
4. 或该更多的使用表之间[逻辑关联](https://www.zhihu.com/question/20006142)

# 亮点
> 几乎没有亮点、代码质量也差
1. 项目本身Web服务、和生成的代码均使用 `Pydantic 2.x``FastAPI`, `SQLModel` 版本
2. 将持续维护,欢迎一起加入。
3. 目前生成的代码非`async`,仅支持`MySQL` DB, 生成的代码分层不够清晰(还没抄到好的),项目本身代码质量差(全是字符串format),生成的SQLModel 表模型部分类型待完善

# 上图
![home](image/home.png)
![conf](image/conf.png)
Expand All @@ -28,42 +22,16 @@
![db_code](image/db_code.png)
# 使用项目
> 桌面端请在Release处下载
> 项目本身语言版本 `Python3.8`
1. 拉取本项目
```shell
git clone https://github.com/zy7y/dfs-generate.git
```
2. 安装依赖
```shell
# 可跳过:安装并使用虚拟环境
python -m venv venv
# 进入虚拟环境
# win
venv\Script\activate
# mac / linux
source venv/bin/activate
```
```shell
# 安装依赖
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
```
3. 启动项目
```shell
uvicorn main:app --port 80
```
4. 浏览器访问
```shell
http://127.0.0.1:80
```
## Star History

<!-- 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)

<!-- /STAR_HISTORY -->



# Contributors

<!-- CONTRIBUTORS_SECTION -->
<!-- /CONTRIBUTORS_SECTION -->
Expand Down

0 comments on commit f26bf5c

Please sign in to comment.