慕课网7七月老师出品的实战项目,讲的课真的很不错。当初学习用的是5.0.7版本,用最新版本做了重构。
本项目采用PHP-5.6语言,ThinkPHP-5.1.27框架开发的全栈应用系统。 打造iOS,Android,Web多端适配的服务端标准API,实现三端分离开发方式,贴合现代Web的基本架构**。
- CMS -- CMS端
- Server -- 服务端API
- Store -- 小程序
- error.code.txt -- 错误码归类文本
- store.sql -- SQL脚本
参考store.sql文件
- TP5三大核心:路由、控制器、模型
- 以ORM的方式查询数据库
- 使用TP5验证器Validate构建整个验证层
- 开发环境和生产环境下不同的全局异常处理机制
- TP5缓存的使用
- 在TP5中使用数据库事务
- 微信小程序登录状态维护
- 微信支付接入
- 微信模板消息
- Class和Module面向对象的思维构建前端代码
- 管理用户令牌
- 体验优化
- 采用RESTFul API风格
- (RESTFul API风格可参考GitHub 开发者文档)
- 返回码、URL语义、HTTP动词、错误码、异常返回
- 使用Token令牌来构建用户授权体系
- API版本控制(v1、v2)