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
|
|
|
|
|
|
|
|
|
## 文档
|
|
|
|
|
|
2023-04-12 17:14:28 +08:00
|
|
|
|
- [开发文档](http://skyselang.gitee.io/yyladmindoc/)
|
2022-06-22 11:57:08 +08:00
|
|
|
|
|
|
|
|
|
## 简介
|
|
|
|
|
|
|
|
|
|
yylAdmin是一个基于ThinkPHP6和Vue2极简后台管理系统,只有登录退出、权限管理、系统管理、接口文档与调试等基础功能;前后台基础框架;你可以在此基础上根据你的业务需求进行开发扩展。前后分离,简单轻量,免费开源,开箱即用。
|
|
|
|
|
|
|
|
|
|
- 后端:[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认证、接口管理...
|
|
|
|
|
- 更多功能请安装后体验
|
|
|
|
|
|
|
|
|
|
## 演示
|
|
|
|
|
|
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
|
|
|
|
## 安装
|
|
|
|
|
|
|
|
|
|
### 环境要求
|
|
|
|
|
|
|
|
|
|
- PHP >= 7.2.5
|
|
|
|
|
安装 fileinfo、redis 扩展
|
|
|
|
|
开启 putenv、proc_open 函数
|
2023-02-01 15:48:09 +08:00
|
|
|
|
- MySQL >= 5.6
|
2022-06-22 11:57:08 +08:00
|
|
|
|
- Redis
|
2023-02-01 15:48:09 +08:00
|
|
|
|
- node >= 14.0.0
|
2022-08-25 18:20:21 +08:00
|
|
|
|
- npm >= 6.9.0
|
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
|
|
|
|
|
重命名.env.example成.env环境变量文件修改里面配置
|
|
|
|
|
```
|
|
|
|
|
##### 环境配置(phpStudy)
|
|
|
|
|
```bash
|
|
|
|
|
根据你的实际环境软件配置
|
|
|
|
|
域名:localhost
|
|
|
|
|
端口:9526
|
|
|
|
|
根目录:yylAdmin/public
|
|
|
|
|
PHP版本:7.3.9
|
|
|
|
|
```
|
|
|
|
|
##### 设置伪静态
|
|
|
|
|
###### Nginx
|
|
|
|
|
```bash
|
|
|
|
|
location / {
|
|
|
|
|
if (!-e $request_filename){
|
|
|
|
|
rewrite ^(.*)$ /index.php?s=$1 last; break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
###### Apache
|
|
|
|
|
```bash
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
|
Options +FollowSymlinks -Multiviews
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
|
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
|
|
|
|
|
</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
|
|
|
|
|
```
|
|
|
|
|
#### 使用 cnpm
|
|
|
|
|
```bash
|
2022-09-20 11:40:23 +08:00
|
|
|
|
npm install -g cnpm@6.2.0 --registry=https://registry.npmmirror.com
|
2022-06-22 11:57:08 +08:00
|
|
|
|
```
|
|
|
|
|
#### 安装依赖
|
|
|
|
|
```bash
|
|
|
|
|
cnpm install
|
|
|
|
|
```
|
|
|
|
|
#### 修改配置
|
|
|
|
|
```bash
|
|
|
|
|
在.env.xxx环境变量文件里面修改接口baseURL
|
|
|
|
|
VUE_APP_BASE_URL = 'http://localhost:9526'
|
|
|
|
|
```
|
|
|
|
|
#### 本地开发 启动项目
|
|
|
|
|
```bash
|
|
|
|
|
cnpm run dev
|
|
|
|
|
```
|
|
|
|
|
#### 开发完打包正式环境
|
|
|
|
|
```bash
|
|
|
|
|
cnpm run build:prod
|
|
|
|
|
```
|
|
|
|
|
#### 开发完打包测试环境
|
|
|
|
|
```bash
|
|
|
|
|
cnpm run build:stage
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 访问后台
|
|
|
|
|
|
|
|
|
|
地址:[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)
|
|
|
|
|
|
|
|
|
|
## 协议
|
|
|
|
|
|
|
|
|
|
- Apache-2.0许可协议,免费开源
|
|
|
|
|
- Copyright skyselang https://gitee.com/skyselang
|
|
|
|
|
|
|
|
|
|
## 提示
|
|
|
|
|
|
|
|
|
|
- 项目不定时更新,前后端最新代码保持一致
|
2022-08-25 18:20:21 +08:00
|
|
|
|
- 拉取代码后请更新前后端依赖(composer update、cnpm 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)
|