You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

前后端完全分离--服务端基于thinkphp5+mysql 接口解决方案
体验地址 http://api.hardphp.com/vue-admin/index.html 账号admin 密码123456
接口测试地址http://api.hardphp.com/api.html
代码结构:
![image](https://github.com/hardphp/tp5-api/blob/master/%E4%BB%A3%E7%A0%81%E7%BB%93%E6%9E%84.png)
```
部署步骤:
第一步已安装可略过安装git ,下载地址https://git-scm.com/download/win然后把C:\Program Files\Git\bin设置环境变量path
第二步已安装可略过https://nodejs.org/en/blog/release/v9.11.2/
第三步已安装可略过安装npm install -g @vue/cli参考https://cli.vuejs.org/zh/guide/installation.html
第四步下载tp5-api 代码下载地址https://github.com/hardphp/tp5-api
第五步配置config/database.php 数据库信息
第六步本地hosts文件配置域名api.hardphp.com域名根据自己喜好与vue-admin对应即可然后指向/public目录即可。
第七步下载vue-admin 代码下载地址https://github.com/hardphp/vue-admin
第八步进入vue-admin 目录依次npm install
第九步:开发模式 npm run serve
第十步:生产模式 npm run build ,把生成的代码放到/public 下更名为vue-admin , 浏览器输入 api.hardphp.com/vue-admin ,账号admin密码123456 即可。
```
```
QQ交流群 :488148501
微信交流群:
```
![image](https://github.com/hardphp/tp5-api/blob/master/895310371197138665.jpg)