work/README.md
vilson 723e3ad25d 更新README
Signed-off-by: vilson <545522390@qq.com>
2019-06-24 21:31:37 +08:00

101 lines
4.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pearProjectApi
基于Vue.js实现的项目管理系统
相关资料https://www.yuque.com/vilson/ef1m6t
需要配合[前端项目](https://github.com/a54552239/pearProject)使用链接https://github.com/a54552239/pearProject
有不明白的地方的可以加群275264059或者联系我QQ545522390
### 演示地址
> [https://beta.vilson.xyz](https://beta.vilson.xyz)
### 登陆 ###
账号123456 密码123456
### 界面截图
![1](https://static.vilson.xyz/overview/1.png)
![1](https://static.vilson.xyz/overview/2.png)
![1](https://static.vilson.xyz/overview/3.png)
![1](https://static.vilson.xyz/overview/4.png)
![1](https://static.vilson.xyz/overview/5.png)
![1](https://static.vilson.xyz/overview/6.png)
![1](https://static.vilson.xyz/overview/7.png)
![1](https://static.vilson.xyz/overview/8.png)
![1](https://static.vilson.xyz/overview/9.png)
![1](https://static.vilson.xyz/overview/10.png)
![1](https://static.vilson.xyz/overview/11.png)
![1](https://static.vilson.xyz/overview/12.png)
![1](https://static.vilson.xyz/overview/13.png)
### 安装步骤 ###
```
PHP >= 7.0.0 (推荐PHP7.2版本)
Mysql >= 5.5.0 (需支持innodb引擎)
PDO PHP Extension
Redis
Node.js
Composer
```
- 可以直接下载[phpstudy](http://phpstudy.php.cn/phpstudy/PhpStudy20180211.zip)部署环境
1. 下载后端接口文件解压到站点根目录或使用Git: git clone https://github.com/a54552239/pearProjectApi
2. 安装后端依赖
1. 进入接口文件目录
2. 方式一Composer
3. 方式二:下载[vendor.zip](https://vilson-static.oss-cn-shenzhen.aliyuncs.com/common/vendor.zip)直接解压到项目根目录覆盖原有的vender文件夹
3. 下载前端项目
4. 安装node.js
1. 地址http://nodejs.cn/download/ 根据情况选择版本
2. 安装npm淘宝镜像
1. 运行cmd
2. 输入npm install -g cnpm --registry=https://registry.npm.taobao.org
5. 前端部署
1. 进入前端项目目录运行cmd命令行
2. 安装依赖cnpm install
1.如果接口端口不是默认端口,需修改./src/config.js将PROD_URL的值改为接口的访问地址
3. 启动项目npm run serve
4. 根据提示填写数据库信息进行安装
![1](https://static.vilson.xyz/help/pearproject/3.png)
6. 打包前端项目(有必要的话)
1. 修改./src/config/config.js修改PRO_URL地址
2. 修改./vue.config.js将publicPath 值改为‘/。如果有CDN的话改为CDN地址
3. 运行cmd输入 npm run build
4. 运行dist目录下的index.html或者将dist目录下的文件部署到服务器上
7. 跨域支持
1. 默认开启跨域,如需关闭,须在前端项目进行以下操作
1. 修改./src/config.js将crossDomain 值改为false
2. 修改./vue.config.js将DEV_URL的值改为接口的访问地址
3. 重启启动项目
8. 消息推送
1. 桌面推送
1. 后端
1. 进入application/common/Plugins/GateWayWorker
2. 修改config.php修改 SERVER_ADDRESS 的值为内网IP地址。端口号根据情况需改注意服务器要放行对应的端口
3. 如果是HTTPS协议需要开启SSL支持
4. Windows环境下直接运行start_for_win.bat文件
5. Linux环境下运行 bash start.sh 启动服务,运行 bash stop.sh 终止服务
6. 进入config/config.php 修改 notice_push 的值为 true
2. 前端
1. 进入 src/config/config.js
2.WS_URI 地址修改为相应的ip地址。如果使用https不能写ip需要写域名
2. 钉钉推送
1. 进入config/config.php 修改 dingtalk_push 的值为 true
2. 进入config/dingtalk.php 修改 agent_id 的值为 对应的应用id
9. 钉钉登录
1. 进入config/dingtalk.php 填写好对应的配置信息,其中 oauth->redirect 的值为 [你的域名]index.php/index/oauth/dingTalkOauthCallback
### 鼓励一下 ###
<img src="https://static.vilson.xyz/pay/wechat.png" alt="Sample" width="150" height="150">
<img src="https://static.vilson.xyz/pay/alipay2.png" alt="Sample" width="150" height="150">