File tree Expand file tree Collapse file tree 4 files changed +51
-13
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +51
-13
lines changed
Original file line number Diff line number Diff line change 1
1
The MIT License (MIT)
2
- Copyright (c) 2018 wmhello
2
+ Copyright (c) 2018 wmhello(qq:871228582)
3
3
4
4
Permission is hereby granted, free of charge, to any person obtaining a copy of
5
5
this software and associated documentation files (the "Software"), to deal in
Original file line number Diff line number Diff line change 3
3
从多个项目中提取关键点、抛弃了的业务部分,对底层的功能进行了各类优化和抽象,写成本项目。
4
4
5
5
## 2、系统概述
6
- 项目使用了目前主流的laravel5 .5与vue.js,采用了主流的前后端分离方式来构建,作为程序的起点,可以直接以此为基础来进行业务扩展 。
7
- 后端(backend目录)负责OAuth认证、用户授权和提供API,在此基础上集成了跨越和excel文件的操作等基础功能 ,使用者只需专注于业务api的开发即可。
6
+ 项目依托laravel5 .5与vue.js,采用了主流的前后端分离方式来构建,作为程序的起点,你可以在此基础上进行自身业务的扩展 。
7
+ 后端(backend目录)负责OAuth认证、用户授权和提供API,在此基础上集成了跨域和excel文件的操作等基础功能 ,使用者只需专注于业务api的开发即可。
8
8
前端(frontend目录)负责页面的显示和前端用户权限的控制。项目已经引入了element UI框架,并已经对用户登录认证、路由、权限等基础功能进行了处理。
9
9
前端用户的权限不但可以控制系统的导航菜单,而且可以控制到页面按钮、表格等内容的显示。使用者只需要专注于业务界面的开发即可。
10
10
本项目使用广泛,已经在本人的多个项目中商用。
56
56
![ 普通用户界面下的学期管理] ( https://github.com/wmhello/laravel_template_with_vue/raw/master/Screenshots/session-user.png )
57
57
58
58
## 4、技术文档
59
+ ### [ 1、后端快速部署] ( back.md )
60
+ ### [ 2、前端快速部署] ( front.md )
61
+ ### [ 3、关键知识点讲述] ( knowledge.md )
62
+ ### [ 4、业务开发] ( developer.md )
63
+
59
64
60
65
## 5、技术支持
61
66
> 如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢! ^_ ^
87
92
> - [ 前端构架 vueAdmin-template] ( https://github.com/PanJiaChen/vueAdmin-template )
88
93
> - [ 前端权限控制 Vue-Access-control] ( https://github.com/tower1229/Vue-Access-Control )
89
94
90
-
91
95
# License
92
96
93
- [ MIT] ( https://github.com/wmhello/laravel_template_with_vue/LICENSE )
97
+ [ MIT] ( https://github.com/wmhello/laravel_template_with_vue/blob/master/ LICENSE )
Original file line number Diff line number Diff line change
1
+ ## 1、安装依赖
2
+ ` composer install `
3
+
4
+ ## 2、复制配置文件,进行数据库配置
5
+ ` cp .env.example .env `
6
+
7
+ ## 3、生成项目所需的数据表
8
+ ` php artisan migrate `
9
+
10
+ ## 4、生成passport的密钥
11
+ ` php artisan passport:key --force `
12
+
13
+ ` php artisan passport:install --force `
14
+
15
+ ## 5、复制第4步生成的密钥到.env文件中,填写为PERSONAL_Client_Secret和PASSPORT_Client_Secret的参数
16
+ PERSONAL_Client_ID=1
17
+
18
+ PERSONAL_Client_Secret=
19
+
20
+ PASSPORT_Client_ID=2
21
+
22
+ PASSPORT_Client_Secret=
23
+
24
+ ## 6、生成用户数据和各种结构数据
25
+ ` php artisan db:seed `
26
+ 用户名和密码在database\seeds\UsersTableSeeder.php文件中明文标记
27
+
28
+ ## 查看API文档地址
29
+ 假设后端的域名为http://localhost 则文档地址为http://localhost/apidoc/
30
+
31
+ ## 编译API文档
32
+ 由于文档使用了apidoc 请使用前预先安装apidoc
33
+
34
+ 编译命令为apidoc -i ./ -o public/apidoc/
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ APP_LOG_LEVEL=debug
6
6
APP_URL = http://localhost
7
7
8
8
DB_CONNECTION = mysql
9
- DB_HOST = 10.192.65.131
9
+ DB_HOST = localhost
10
10
DB_PORT = 3306
11
- DB_DATABASE = xpyz
12
- DB_USERNAME = wmhello
13
- DB_PASSWORD = 514728
11
+ DB_DATABASE = root
12
+ DB_USERNAME = laravel
13
+ DB_PASSWORD =
14
14
15
15
BROADCAST_DRIVER = log
16
16
CACHE_DRIVER = file
@@ -32,8 +32,8 @@ PUSHER_APP_ID=
32
32
PUSHER_APP_KEY =
33
33
PUSHER_APP_SECRET =
34
34
35
- PERSONAL_Client_ID = 3
36
- PERSONAL_Client_Secret = i1rb3e9rqmg8xNtM8H30wnl24QteogNrqZauPaoW
35
+ PERSONAL_Client_ID = 1
36
+ PERSONAL_Client_Secret =
37
37
38
- PASSPORT_Client_ID = 4
39
- PASSPORT_Client_Secret = k4mCTWjHpAzBmXwyfgA12IROrZaKAD3YrnJJwJyZ
38
+ PASSPORT_Client_ID = 2
39
+ PASSPORT_Client_Secret =
You can’t perform that action at this time.
0 commit comments