Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f164605

Browse filesBrowse files
committed
更新技术文档
1 parent f417f93 commit f164605
Copy full SHA for f164605

File tree

Expand file treeCollapse file tree

4 files changed

+51
-13
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+51
-13
lines changed

‎LICENSE

Copy file name to clipboardExpand all lines: LICENSE
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The MIT License (MIT)
2-
Copyright (c) 2018 wmhello
2+
Copyright (c) 2018 wmhello(qq:871228582)
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy of
55
this software and associated documentation files (the "Software"), to deal in

‎README.md

Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
从多个项目中提取关键点、抛弃了的业务部分,对底层的功能进行了各类优化和抽象,写成本项目。
44

55
## 2、系统概述
6-
项目使用了目前主流的laravel5.5与vue.js,采用了主流的前后端分离方式来构建,作为程序的起点,可以直接以此为基础来进行业务扩展
7-
后端(backend目录)负责OAuth认证、用户授权和提供API,在此基础上集成了跨越和excel文件的操作等基础功能,使用者只需专注于业务api的开发即可。
6+
项目依托laravel5.5与vue.js,采用了主流的前后端分离方式来构建,作为程序的起点,你可以在此基础上进行自身业务的扩展
7+
后端(backend目录)负责OAuth认证、用户授权和提供API,在此基础上集成了跨域和excel文件的操作等基础功能,使用者只需专注于业务api的开发即可。
88
前端(frontend目录)负责页面的显示和前端用户权限的控制。项目已经引入了element UI框架,并已经对用户登录认证、路由、权限等基础功能进行了处理。
99
前端用户的权限不但可以控制系统的导航菜单,而且可以控制到页面按钮、表格等内容的显示。使用者只需要专注于业务界面的开发即可。
1010
本项目使用广泛,已经在本人的多个项目中商用。
@@ -56,6 +56,11 @@
5656
![普通用户界面下的学期管理](https://github.com/wmhello/laravel_template_with_vue/raw/master/Screenshots/session-user.png)
5757

5858
## 4、技术文档
59+
### [1、后端快速部署](back.md)
60+
### [2、前端快速部署](front.md)
61+
### [3、关键知识点讲述](knowledge.md)
62+
### [4、业务开发](developer.md)
63+
5964

6065
## 5、技术支持
6166
> 如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢! ^_^
@@ -87,7 +92,6 @@
8792
>- [前端构架 vueAdmin-template](https://github.com/PanJiaChen/vueAdmin-template)
8893
>- [前端权限控制 Vue-Access-control](https://github.com/tower1229/Vue-Access-Control)
8994
90-
9195
# License
9296

93-
[MIT](https://github.com/wmhello/laravel_template_with_vue/LICENSE)
97+
[MIT](https://github.com/wmhello/laravel_template_with_vue/blob/master/LICENSE)

‎back.md

Copy file name to clipboard
+34Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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/

‎backend/.env.example

Copy file name to clipboardExpand all lines: backend/.env.example
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ APP_LOG_LEVEL=debug
66
APP_URL=http://localhost
77

88
DB_CONNECTION=mysql
9-
DB_HOST=10.192.65.131
9+
DB_HOST=localhost
1010
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=
1414

1515
BROADCAST_DRIVER=log
1616
CACHE_DRIVER=file
@@ -32,8 +32,8 @@ PUSHER_APP_ID=
3232
PUSHER_APP_KEY=
3333
PUSHER_APP_SECRET=
3434

35-
PERSONAL_Client_ID=3
36-
PERSONAL_Client_Secret=i1rb3e9rqmg8xNtM8H30wnl24QteogNrqZauPaoW
35+
PERSONAL_Client_ID=1
36+
PERSONAL_Client_Secret=
3737

38-
PASSPORT_Client_ID=4
39-
PASSPORT_Client_Secret=k4mCTWjHpAzBmXwyfgA12IROrZaKAD3YrnJJwJyZ
38+
PASSPORT_Client_ID=2
39+
PASSPORT_Client_Secret=

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.