Skip to content

Commit 8de82dd

Browse files
committed
init
0 parents  commit 8de82dd

File tree

5 files changed

+154
-0
lines changed

5 files changed

+154
-0
lines changed

.nojekyll

Whitespace-only changes.

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## 介绍
2+
3+
FlyAdmin是基于ThinkPHP5.1开发后台快速开发框架,支持响应式布局,支持电脑,手机,平板三端,能够快速生成CRUD代码,节省90%的搬砖造轮子的时间与精力。
4+
5+
## 功能特性
6+
7+
- 响应式布局
8+
- Pjax局部刷新界面,浏览器体验提升
9+
- 一键CRUD
10+
- 无限级父子角色与权限
11+
- 插件机制
12+
- 集成简单IM
13+
- 多语言支持
14+
15+
## 演示
16+
17+
地址: http://demo.flyadmin.net
18+
19+
演示账号: `admin/123456`
20+
21+
22+
23+
## 鸣谢
24+
25+
ThinkPHP : http://www.thinkphp.cn
26+
27+
FastAdmin: https://www.fastadmin.net, FlyAdmin很大程度上参考并借鉴了FastAdmin架构,万分感谢
28+
29+
WebArch: https://webarchsrm.com/
30+
31+
Bootstrap: http://bootcss.com
32+
33+
JQuyer: https://jquery.com/
34+
35+
Pjax: https://github.com/defunkt/jquery-pjax
36+
37+
bootstrap-table: https://github.com/wenzhixin/bootstrap-table
38+
39+
Select2: https://select2.org/
40+
41+
其他 ...
42+
43+
以上排名不分先后

_sidebar.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* [序言](/)
2+
* [下载与安装](/install)
3+

index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Document</title>
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7+
<meta name="description" content="Description">
8+
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
9+
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
10+
</head>
11+
<body>
12+
<nav>
13+
<a href="http://www.flyadmin.net" target="_blank">官网</a>
14+
<a href="https://gitee.com/itzhoujun/flyadmin" target="_blank">下载</a>
15+
<a href="http://store.flyadmin.net" target="_blank">插件中心</a>
16+
<a href="http://bbs.flyadmin.net" target="_blank">交流社区</a>
17+
<a href="http://www.flyadmin.net/donate" target="_blank">捐赠</a>
18+
</nav>
19+
<div id="app"></div>
20+
<script>
21+
window.$docsify = {
22+
name: 'FlyAdmin',
23+
repo: '',
24+
loadSidebar: true,
25+
subMaxLevel: 2,
26+
auto2top: true,
27+
search: {
28+
placeholder: '搜索',
29+
noData: '没找到结果',
30+
depth: 2,
31+
paths: 'auto'
32+
}
33+
}
34+
</script>
35+
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
36+
<script src="//unpkg.com/prismjs/components/prism-php.js"></script>
37+
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
38+
</body>
39+
</html>

install.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
## 下载
2+
3+
FlyAdmin只提供了git完整包方式下载
4+
5+
下载地址: https://gitee.com/itzhoujun/flyadmin
6+
7+
8+
9+
## 安装
10+
11+
FlyAdmin是基于ThinkPHP5.1开发的快速开发框架,本质上来说其实就是tp5.1的一个项目,没有真正意义上的安装。所谓的安装其实就是把项目部署到nginx或apache中。大家可以参考 [tp5.1官方文档](https://www.kancloud.cn/manual/thinkphp5_1/353946) 进行部署。
12+
13+
项目部署后,访问项目任意路径,将会进入在线引导安装程序进行环境检查以及数据库的文件的导入安装。根据提示完成安装即可。
14+
15+
默认用户名密码: `admin/12345`
16+
17+
为了照顾小白玩家,这里也重点介绍一下部署的几个重要注意事项(下面均以nginx为例):
18+
19+
下面的内容大神可以忽略不看
20+
21+
### 项目路径
22+
23+
在配置nginx时,应该将路径配置到 `/path/to/FlyAdmin/public` 路径下,由于nginx的一些安全机制,此时你无法访问上一级目录`/path/to/FlyAdmin` 的代码,为了使其能够正常访问,我们还需要修改 `open_basedir` 配置来允许上一级目录被访问。
24+
25+
26+
27+
修改 `open_basedir` 的方式有三种,这里更推荐使用修改 `.user.ini` 文件的方式,具体可以参考:https://www.kancloud.cn/manual/thinkphp5/336757
28+
29+
30+
31+
### 域名访问
32+
33+
无论是开发时,还是发布到生成环境,都建议使用域名访问项目。以开发环境为例,首先你得修改hosts文件,将域名指向到127.0.0.1:
34+
35+
```
36+
127.0.0.1 yourdomain.com
37+
```
38+
39+
hosts文件所在路径:
40+
41+
- Linux 或 Mac : `/etc/hosts`
42+
- Windows: `c:\windows\system32\drivers\etc\hosts`
43+
44+
45+
46+
然后在nginx配置中使用你的域名配置虚拟主机,而不再用localhost来访问项目。在生成环境自然是使用真实域名访问,就不需要修改hosts文件了。
47+
48+
49+
50+
### URL重写
51+
52+
通过url重写来隐藏访问路径中的index.php,不仅可以使url更美观,也可以让你在开发过程中避免掉很多url导致的一些坑。
53+
54+
55+
56+
以nginx为例,配置如下:
57+
58+
```
59+
location / {
60+
if (!-e $request_filename) {
61+
rewrite ^(.*)$ /index.php?s=/$1 last;
62+
}
63+
}
64+
```
65+
66+
参考:https://www.kancloud.cn/manual/thinkphp5_1/353955
67+
68+
69+

0 commit comments

Comments
 (0)