Giter VIP home page Giter VIP logo

dfs-generate's Introduction

dfs-generate codecov

通过已有数据库表,生成FastAPI接口的工具项目,最终目的为FastAPI使用者,减少代码; 项目启发 Mybatis 逆向工程、pdmaner

已支持从数据库表生成

  • SQLModel
  • Tortoise ORM
  • Vue、React
  • FastAPI 增加、删除、分页查询、详情查询、更新接口

Generate Code

FastAPI SQLModel MySQL

FastAPI Tortoise ORM MySQL

使用过程中有疑问、或其他宝贵意见 -> issues,如果你对这个项目感兴趣,欢迎加入共同实现,

桌面端下载

支持 Windows、MacOS 下载最新版本

源码运行

查看详情

注意:开发使用环境 Node18.15 Python3.11,不低于该要求最佳。

1. 下载源码

git clone https://github.com/zy7y/dfs-generate.git

以下命令均在源码根目录执行

2. 前端

进入目录

cd web

安装依赖

npm i

打包编译

npm run build

3. 后端

虚拟环境(可选)

python -m venv venv

# windows 激活虚拟环境
venv\Scripts\activate

# mac 、linux 激活虚拟环境
source venv/bin/activate

安装依赖

pip install -r requirements.txt 

运行

解决找不到模块问题 mac / linux export PYTHONPATH=./ windows set PYTHONPATH=./

python dfs_generate/server.py

访问

注意:端口8080,请确保该端口未被占用

http://127.0.0.1:8080

Star History

Star History Chart

赞赏

wechat

dfs-generate's People

Contributors

zy7y avatar 296711867 avatar c929947 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.