This commit is contained in:
mkg
2021-03-23 08:48:46 +08:00
7 changed files with 48 additions and 31 deletions
+44 -27
View File
@@ -12,16 +12,15 @@
[预 览](http://flask.pearadmin.com) | [官 网](http://www.pearadmin.com/) | [群聊](https://jq.qq.com/?_wv=1027&k=5OdSmve) | [社区](http://forum.pearadmin.com/) [预 览](http://flask.pearadmin.com) | [官 网](http://www.pearadmin.com/) | [群聊](https://jq.qq.com/?_wv=1027&k=5OdSmve) | [社区](http://forum.pearadmin.com/)
<p align="center"> <p align="center">
<a href="#"> <a href="#">
<img src="https://img.shields.io/badge/pear%20admin%20flask-0.1-green" alt="Pear Admin Layui Version"> <img src="https://img.shields.io/badge/pear%20admin%20flask-1.0.0-green" alt="Pear Admin Layui Version">
</a> </a>
<a href="#"> <a href="#">
<img src="https://img.shields.io/badge/JQuery-2.0+-green.svg" alt="Jquery Version"> <img src="https://img.shields.io/badge/Python-3.6+-green.svg" alt="Python Version">
</a> </a>
<a href="#"> <a href="#">
<img src="https://img.shields.io/badge/Layui-2.5.6+-green.svg" alt="Layui Version"> <img src="https://img.shields.io/badge/Mysql-5.3.2+-green.svg" alt="Mysql Version">
</a> </a>
</p> </p>
</div> </div>
@@ -36,56 +35,74 @@
#### 版本说明 #### 版本说明
Pear Admin Flask 分为个版本: Pear Admin Flask 分为 Common / Simple 两个版本:
**[数据库权限管理版本](https://gitee.com/pear-admin/pear-admin-flask/tree/master/) 开发中** [** Common 通用版本 **](https://gitee.com/pear-admin/pear-admin-flask/tree/master/)
[**yaml权限管理版本(简洁版**](https://gitee.com/pear-admin/pear-admin-flask/tree/simple/) [** Simple 简洁版**](https://gitee.com/pear-admin/pear-admin-flask/tree/simple/)
#### 环境要求 #### 项目安装
* python >= 3.6
* mysql>=5.7
#### 安装配置
```bash ```bash
#下载项目 # 下 载
git clone https://gitee.com/pear-admin/pear-admin-flask git clone https://gitee.com/pear-admin/pear-admin-flask
#安装依赖
# 安 装
pip install -r requirement.txt pip install -r requirement.txt
#修改数据库连接配置文件
# 配 置
applications\config\database.py applications\config\database.py
``` ```
#### 修改配置
```python ```python
#修改数据库连接配置文件applications\config\database.py # 主 机
#修改成你自己的
HOST = '127.0.0.1' HOST = '127.0.0.1'
# 端 口
PORT = '3306' PORT = '3306'
# 数 据 库
DATABASE = 'PearAdminFlask' DATABASE = 'PearAdminFlask'
# 账 户
USERNAME = 'root' USERNAME = 'root'
# 密 码
PASSWORD = 'root' PASSWORD = 'root'
``` ```
>推荐使用虚拟环境 venv #### Venv 安装
>
>```bash
>python -m venv venv
>```
>
```bash ```bash
#进入开发目录 python -m venv venv
```
#### 运行项目
```bash
# 进 入 目 录
cd dev cd dev
#执行初始化数据库脚本
# 初 始 化 数 据 库
python initDb.py python initDb.py
# 如 果 报 模 块 路 径 错 误 # 如 果 报 模 块 路 径 错 误
python dev/initDb.py python dev/initDb.py
``` ```
然后,你可以使用 flask run 命令启动项目 执行 flask run 命令启动项目
#### 预览项目
| | |
|---------------------|---------------------|
| ![](readmes/1.jpg) | ![](readmes/2.jpg) |
| ![](readmes/3.jpg)| ![](readmes/4.jpg) |
| ![](readmes/5.jpg) | ![](readmes/6.jpg) |
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB