|
1 |
| -# react-antd-admin |
2 |
| -A Management System Web powered by React. |
| 1 | +<!-- PROJECT SHIELDS --> |
| 2 | +[](/LICENSE) |
| 3 | +[](https://github.com/basefas/react-antd-admin/releases) |
| 4 | + |
| 5 | + |
| 6 | +<!-- PROJECT LOGO --> |
| 7 | +<br /> |
| 8 | +<div align="center"> |
| 9 | + <a> |
| 10 | + <img src="https://raw.githubusercontent.com/basefas/files/main/logo.svg" alt="Logo" width="80" height="80"> |
| 11 | + </a> |
| 12 | + |
| 13 | +<h3 align="center">react-antd-admin</h3> |
| 14 | + |
| 15 | + <p align="center"> |
| 16 | + 一个使用 React 和 Antd 开发管理系统 |
| 17 | + <br /> |
| 18 | + </p> |
| 19 | +</div> |
| 20 | + |
| 21 | +<!-- Introduction --> |
| 22 | + |
| 23 | +## 简介 |
| 24 | + |
| 25 | +react-antd-admin 使用 vite 与 antd v5 开发,包含常用后台使用的基本模块,依赖项少,结构简单,同时提供完整功能的后端程序,可快速用于二次开发及功能扩展。 |
| 26 | + |
| 27 | + |
| 28 | +| | url | introduction | |
| 29 | +|-----------|---------------------------------------------|--------------------------------------------| |
| 30 | +| backend | https://github.com/basefas/admin-go | 使用 Go & Gin 开发的后台管理系统后端 | |
| 31 | +| frontend | https://github.com/basefas/react-antd-admin | 使用 react & vite & antd 开发的后台管理系统前端| |
| 32 | + |
| 33 | + |
| 34 | +## 页面截图 |
| 35 | + |
| 36 | +### 登录页面 |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +### 用户管理 |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +### 分组管理 |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | +### 菜单管理 |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +### 角色及权限管理 |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +<!-- GETTING STARTED --> |
| 58 | + |
| 59 | +## 快速开始 |
| 60 | + |
| 61 | +1. 克隆项目到本地 |
| 62 | + |
| 63 | +``` |
| 64 | +git clone https://github.com/basefas/react-antd-admin |
| 65 | +``` |
| 66 | + |
| 67 | +2. 安装依赖 |
| 68 | + |
| 69 | +``` |
| 70 | +npm install |
| 71 | +``` |
| 72 | + |
| 73 | +3. 运行 |
| 74 | + |
| 75 | +``` |
| 76 | +npm run dev |
| 77 | +``` |
| 78 | + |
| 79 | +<!-- BUILD --> |
| 80 | + |
| 81 | +## Build |
| 82 | + |
| 83 | +1. 本地编译 |
| 84 | + |
| 85 | +``` |
| 86 | +npm run build |
| 87 | +``` |
| 88 | + |
| 89 | +2. 本地查看编译结果 |
| 90 | + |
| 91 | +``` |
| 92 | +npm run preview |
| 93 | +``` |
| 94 | + |
| 95 | + |
| 96 | +2. 使用 docker 编译并打包 docker 镜像 |
| 97 | + |
| 98 | +``` |
| 99 | +docker build -f Dockerfile -t react-antd-admin:<your_version> . |
| 100 | +``` |
| 101 | + |
| 102 | +> 注:将 `<your_version>` 替换为你需要的版本号 |
| 103 | +
|
| 104 | +3. 修改配置 |
| 105 | + |
| 106 | +本地开发修改 `env.development` 文件修改配置 |
| 107 | +打包需在编译前修改 `env.production` 文件修改配置 |
| 108 | +可配置项如下 |
| 109 | + |
| 110 | +``` |
| 111 | +# API 的 URL |
| 112 | +VITE_API_HOST=http://localhost |
| 113 | +# API 的 PORT |
| 114 | +VITE_API_PORT=8086 |
| 115 | +# API 的 超时时间 |
| 116 | +VITE_API_TIMEOUT=5000 |
| 117 | +# 用于显示的平台名称 |
| 118 | +VITE_PLATFORM_NAME=React Antd Admin |
| 119 | +``` |
| 120 | + |
| 121 | +<!-- LICENSE --> |
| 122 | + |
| 123 | +## 版权声明 |
| 124 | + |
| 125 | +react-antd-admin 基于 MIT 协议, 详情请参考 [license](LICENSE)。 |
0 commit comments