2022-06-22 11:57:08 +08:00
|
|
|
|
# yylAdmin
|
2020-11-23 19:31:41 +08:00
|
|
|
|
|
2023-04-12 15:17:43 +08:00
|
|
|
|
- [码云](https://gitee.com/skyselang/yylAdmin) | [Github](https://github.com/skyselang/yylAdmin)
|
2022-06-22 11:57:08 +08:00
|
|
|
|
|
|
|
|
|
## 文档
|
|
|
|
|
|
2024-05-07 16:26:55 +08:00
|
|
|
|
- [开发文档](https://www.yyladmin.top/)
|
2022-06-22 11:57:08 +08:00
|
|
|
|
|
|
|
|
|
## 简介
|
|
|
|
|
|
2024-02-07 12:25:40 +08:00
|
|
|
|
yylAdmin是一个基于ThinkPHP8和Vue3极简后台管理系统,只有登录退出、权限管理、系统管理、接口文档与调试等基础功能;前后台基础框架;你可以在此基础上根据你的业务需求进行开发扩展。前后分离,简单轻量,免费开源,开箱即用。
|
2022-06-22 11:57:08 +08:00
|
|
|
|
|
|
|
|
|
- 后端:[yylAdmin](https://gitee.com/skyselang/yylAdmin) | 前端:[yylAdminWeb](https://gitee.com/skyselang/yylAdminWeb)
|
|
|
|
|
|
|
|
|
|
## 功能
|
|
|
|
|
|
|
|
|
|
- 控制台
|
|
|
|
|
- 会员管理
|
|
|
|
|
- 内容管理
|
|
|
|
|
- 文件管理
|
|
|
|
|
- 设置管理
|
2023-02-01 15:48:09 +08:00
|
|
|
|
- 系统管理:权限管理...
|
2022-06-22 11:57:08 +08:00
|
|
|
|
- 代码生成器
|
2022-08-25 18:20:21 +08:00
|
|
|
|
- Excel导出导入
|
2022-06-22 11:57:08 +08:00
|
|
|
|
- 接口文档与调试...
|
|
|
|
|
- 前台基础功能:登录注册、微信登录、Token认证、接口管理...
|
2024-02-07 12:25:40 +08:00
|
|
|
|
- 国际化
|
|
|
|
|
- 暗黑模式
|
2022-06-22 11:57:08 +08:00
|
|
|
|
- 更多功能请安装后体验
|
|
|
|
|
|
2024-02-07 12:25:40 +08:00
|
|
|
|
| 版本 | 分支 | 简介 | 环境 |
|
|
|
|
|
|------|-----------------------------------------------------|-----------------------------|---------------|
|
2024-02-20 18:14:32 +08:00
|
|
|
|
| v4 | [master](https://gitee.com/skyselang/yylAdmin) | thinkphp8 vue3 element-plus | php8.0 node18 |
|
|
|
|
|
| v3 | [v3](https://gitee.com/skyselang/yylAdmin/tree/v3/) | thinkphp6 vue2 element-ui | php7.3 node12 |
|
2024-02-07 12:25:40 +08:00
|
|
|
|
|
2022-06-22 11:57:08 +08:00
|
|
|
|
## 演示
|
|
|
|
|
|
2022-08-25 18:20:21 +08:00
|
|
|
|
- 地址:[demo](https://admin.yyladmin.top)
|
2022-06-22 11:57:08 +08:00
|
|
|
|
- 账号:yyladmin、admin、demo、test、php
|
|
|
|
|
- 密码:123456
|
|
|
|
|
- 提示:演示账号只有部分权限,请安装后体验全部功能
|
2022-08-25 18:20:21 +08:00
|
|
|
|
- 前台:[index](https://www.yyladmin.top)
|
2022-06-22 11:57:08 +08:00
|
|
|
|
## 安装
|
|
|
|
|
|
|
|
|
|
### 环境要求
|
|
|
|
|
|
2024-02-26 17:28:26 +08:00
|
|
|
|
- PHP >= 8.0
|
2022-06-22 11:57:08 +08:00
|
|
|
|
安装 fileinfo、redis 扩展
|
|
|
|
|
开启 putenv、proc_open 函数
|
2023-09-09 12:37:40 +08:00
|
|
|
|
- MySQL >= 5.5
|
2024-02-07 12:25:40 +08:00
|
|
|
|
- Redis >= 5.0
|
2024-02-20 18:14:32 +08:00
|
|
|
|
- Node >= 18.12
|
|
|
|
|
- Npm >= 8.19
|
2022-06-22 11:57:08 +08:00
|
|
|
|
|
|
|
|
|
### 安装后端
|
|
|
|
|
|
|
|
|
|
##### 克隆项目
|
|
|
|
|
```bash
|
|
|
|
|
git clone https://gitee.com/skyselang/yylAdmin.git
|
|
|
|
|
```
|
|
|
|
|
##### 进入项目目录
|
|
|
|
|
```bash
|
|
|
|
|
cd yylAdmin
|
|
|
|
|
```
|
|
|
|
|
##### 设置 composer
|
|
|
|
|
```bash
|
|
|
|
|
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
|
|
|
|
|
```
|
|
|
|
|
##### 安装依赖
|
|
|
|
|
```bash
|
|
|
|
|
composer install
|
|
|
|
|
```
|
|
|
|
|
##### 导入数据库
|
|
|
|
|
```bash
|
|
|
|
|
数据库文件:private/yyladmin.sql
|
2023-04-12 17:14:28 +08:00
|
|
|
|
数据库字符集:utf8mb4
|
|
|
|
|
数据库排序规则:utf8mb4_general_ci
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```
|
|
|
|
|
##### 修改配置
|
|
|
|
|
```bash
|
2023-09-09 12:37:40 +08:00
|
|
|
|
复制.env.example后重命名成.env环境变量文件修改里面配置
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```
|
|
|
|
|
##### 环境配置(phpStudy)
|
|
|
|
|
```bash
|
|
|
|
|
根据你的实际环境软件配置
|
|
|
|
|
域名:localhost
|
|
|
|
|
端口:9526
|
|
|
|
|
根目录:yylAdmin/public
|
2024-02-07 12:25:40 +08:00
|
|
|
|
PHP版本:8.0.2
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```
|
|
|
|
|
##### 设置伪静态
|
|
|
|
|
###### Nginx
|
|
|
|
|
```bash
|
|
|
|
|
location / {
|
|
|
|
|
if (!-e $request_filename){
|
|
|
|
|
rewrite ^(.*)$ /index.php?s=$1 last; break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
###### Apache
|
2023-09-09 12:37:40 +08:00
|
|
|
|
- httpd.conf 配置文件中加载 mod_rewrite.so 模块
|
|
|
|
|
- AllowOverride None 将 None 改为 All
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```bash
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
|
Options +FollowSymlinks -Multiviews
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
2023-09-09 12:37:40 +08:00
|
|
|
|
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
|
2022-06-22 11:57:08 +08:00
|
|
|
|
</IfModule>
|
|
|
|
|
```
|
2022-08-25 18:20:21 +08:00
|
|
|
|
> 不设置伪静态接口文档无法访问
|
2022-06-22 11:57:08 +08:00
|
|
|
|
|
|
|
|
|
### 安装前端
|
|
|
|
|
|
|
|
|
|
#### 克隆项目
|
|
|
|
|
```bash
|
|
|
|
|
git clone https://gitee.com/skyselang/yylAdminWeb.git
|
|
|
|
|
```
|
|
|
|
|
#### 进入项目目录
|
|
|
|
|
```bash
|
|
|
|
|
cd yylAdminWeb
|
|
|
|
|
```
|
2024-02-07 12:25:40 +08:00
|
|
|
|
#### 设置 npm
|
|
|
|
|
```bash
|
|
|
|
|
npm config set registry https://registry.npmmirror.com
|
|
|
|
|
```
|
2022-06-22 11:57:08 +08:00
|
|
|
|
#### 安装依赖
|
|
|
|
|
```bash
|
2023-09-09 12:37:40 +08:00
|
|
|
|
npm install
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```
|
2024-02-07 12:25:40 +08:00
|
|
|
|
> 也可以使用 cnpm、pnpm、yarn
|
2022-06-22 11:57:08 +08:00
|
|
|
|
#### 修改配置
|
|
|
|
|
```bash
|
2023-09-09 12:37:40 +08:00
|
|
|
|
复制.env.xxx后重命名成.env.xxx.local环境变量文件修改里面配置
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```
|
|
|
|
|
#### 本地开发 启动项目
|
|
|
|
|
```bash
|
2023-09-09 12:37:40 +08:00
|
|
|
|
npm run dev
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```
|
|
|
|
|
#### 开发完打包正式环境
|
|
|
|
|
```bash
|
2023-09-09 12:37:40 +08:00
|
|
|
|
npm run build:prod
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```
|
|
|
|
|
#### 开发完打包测试环境
|
|
|
|
|
```bash
|
2023-09-09 12:37:40 +08:00
|
|
|
|
npm run build:stage
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 访问后台
|
|
|
|
|
|
|
|
|
|
地址:[http://localhost:9527](http://localhost:9527)
|
|
|
|
|
账号:yyladmin
|
|
|
|
|
密码:123456
|
|
|
|
|
超管:skyselang
|
|
|
|
|
密码:123456
|
|
|
|
|
|
|
|
|
|
## 预览
|
|
|
|
|
|
|
|
|
|
- ![login](./public/static/img/yyladmin_login.jpg)
|
|
|
|
|
- ![index](./public/static/img/yyladmin.jpg)
|
|
|
|
|
|
|
|
|
|
## 支持
|
|
|
|
|
|
|
|
|
|
- 如果本项目对您有所帮助,请点个Star支持我们
|
|
|
|
|
|
|
|
|
|
- [Gitee](https://gitee.com/skyselang/yylAdmin)![Gitee](https://gitee.com/skyselang/yylAdmin/badge/star.svg)
|
|
|
|
|
- [Github](https://github.com/skyselang/yylAdmin)![Github](https://img.shields.io/github/stars/skyselang/yylAdmin)
|
|
|
|
|
|
|
|
|
|
## 反馈
|
|
|
|
|
|
|
|
|
|
- 有任何疑问或者建议,请提 [Issue](https://gitee.com/skyselang/yylAdmin/issues)
|
|
|
|
|
|
|
|
|
|
## 协议
|
|
|
|
|
|
2024-02-07 12:25:40 +08:00
|
|
|
|
- Apache-2.0 许可协议,免费开源
|
2022-06-22 11:57:08 +08:00
|
|
|
|
- Copyright skyselang https://gitee.com/skyselang
|
|
|
|
|
|
|
|
|
|
## 提示
|
|
|
|
|
|
|
|
|
|
- 项目不定时更新,前后端最新代码保持一致
|
2024-02-20 18:14:32 +08:00
|
|
|
|
- 拉取代码后请更新前后端依赖(composer update、npm install)、同步数据库表结构、清除缓存
|
2022-06-22 11:57:08 +08:00
|
|
|
|
|
2023-04-12 15:17:43 +08:00
|
|
|
|
## 交流
|
2022-06-22 11:57:08 +08:00
|
|
|
|
|
|
|
|
|
- QQ交流群:679883097
|
|
|
|
|
|
|
|
|
|
## 安全
|
|
|
|
|
|
2022-08-25 18:20:21 +08:00
|
|
|
|
- yylAdmin :[![OSCS Status](https://www.oscs1024.com/platform/badge/skyselang/yylAdmin.svg?size=small)](https://www.murphysec.com/dr/jOuP7HsHeZORjqNlDm)
|
|
|
|
|
- yylAdminWeb :[![OSCS Status](https://www.oscs1024.com/platform/badge/skyselang/yylAdminWeb.svg?size=small)](https://www.murphysec.com/dr/xygSZedOQLyj4uxyB8)
|