从数据库逆向生成SQLModel模型、FastAPI 接口,有效减少重复编码,👀https://www.bilibili.com/video/BV1Gp4y1d7P8/
通过已有数据库表,生成FastAPI接口的工具项目,最终目的为FastAPI使用者,减少代码; 项目启发 Mybatis 逆向工程、pdmaner
使用过程中有疑问、或其他宝贵意见 -> issues,如果你对这个项目感兴趣,欢迎加入共同实现,
注意:开发使用环境 Node18.15 Python3.11,不低于该要求最佳。
git clone https://github.com/zy7y/dfs-generate.git
以下命令均在源码根目录执行
cd web
npm i
npm run build
python -m venv venv
# windows 激活虚拟环境
venv\Scripts\activate
# mac 、linux 激活虚拟环境
source venv/bin/activate
pip install -r requirements.txt
python dfs_generate/server.py
注意:端口8080,请确保该端口未被占用
http://127.0.0.1:8080