work/README.md
545522390@qq.com 163d447316 更新readme
2019-01-18 13:55:12 +08:00

80 lines
3.0 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://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
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://static.vilson.xyz/help/pearproject/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. 重启启动项目
### 鼓励一下 ###
<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">