2 Star 16 Fork 0

senqi / fastapi-vue-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

logo

介绍

fastapi-vue-admin 是一套全部开源的快速开发平台,提供免费使用

  • 后端采用 FastAPI(现代、高性能异步框架) + Swagger(自动生成交互式API文档) + Pydantic(强制类型约束) + SQLAlchemy 2.0
  • 前端采用 Vue3 + Ant Design Vue + TypeScript + Vite 等主流技术开发;
  • 权限认证使用(哈希)密码和 JWT Bearer 令牌的 OAuth2
  • 基于 RBAC 权限架构设计。支持加载动态权限菜单、按钮级别权限控制、数据级别权限控制
  • 开箱即用的中后台解决方案,可以用来作为新项目的启动模版,也可用于学习参考

在线体验

PC端演示地址:https://fastapi-vue-admin.senqiweb.cn

管理员账户:

  • 账号:senqi
  • 密码:senqi1010

测试账户:

  • 账号:test
  • 密码:test1010

安装和使用

获取代码

git clone https://gitee.com/senqi666/fastapi-vue-admin.git

准备工作

Python == 3.10(其他版本均未测试)
nodejs >= 20.0(推荐使用最新版)
PgSQL(推荐使用最新版)
Redis(推荐使用最新版)

后端

  1. 安装依赖

    cd backend
    pip3 install -r requirements.txt
  2. 修改项目数据库配置信息 在app/core/config.py文件中的SQL_DB_URLREDIS_URL

  3. 创建名为fastapi_vue_admin的数据库

  4. 初始化数据库数据

    # 进入后端根目录 backend 下运行
    # 运行命令后会自动生成数据库内的表和数据
    # 如已初始化数据库数据,此命令可不执行
    python3 main.py init
  5. 启动

    # 进入后端根目录 backend 下运行
    python3 main.py run

前端

  1. 安装依赖

    cd web
    npm install
  2. 运行

    npm run dev
  3. 打包

    npm run build

访问项目

MIT License Copyright (c) 2024 senqi666 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于 fastapi+vue+ts 开发的 RBAC 权限管理系统 展开 收起
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/senqi666/fastapi-vue-admin.git
git@gitee.com:senqi666/fastapi-vue-admin.git
senqi666
fastapi-vue-admin
fastapi-vue-admin
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891