# python flask搭建高可用的MVC框架 **Repository Path**: li-ruipeng-alex/flask ## Basic Information - **Project Name**: python flask搭建高可用的MVC框架 - **Description**: python flask搭建高可用的MVC框架 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-04-01 - **Last Updated**: 2025-10-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python flask搭建高可用的MVC框架 #### 介绍 python flask搭建高可用的MVC框架 #### 软件架构 基于flask构建的高可用MVC框架 #### 安装教程 建议Python版本>=3.6 1. 创建虚拟环境并激活 - mac/linux ``` $ python3 -m venv venv $ cd venv $ . venv/bin/activate ``` - winodws ``` py -3 -m venv venv cd venv venv\Scripts\activate ``` 2. 安装依赖 ``` pip3 install -r requirements.txt ``` 3. 运行 - 运行前将环境设置为开发环境 ``` export ops_config=local ``` - 运行 ``` pip3 install -r requirements.txt ``` #### 使用说明 1. 生成models ``` 全库生成 flask-sqlacodegen 'mysql://root:123456@127.0.0.1/food_db' --outfile "common/models/model.py" --flask 单表生成 flask-sqlacodegen 'mysql://root:123456@127.0.0.1/food_db' --tables user --outfile "common/models/user.py" --flask ``` 2. xxxx 3. xxxx #### 参与贡献 导出所有库 pip3 list --format=freeze >requirement.txt 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 配置环境: