Giter Club home page Giter Club logo

sunday-store's Introduction

Sunday-Store

简介

慕课网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脚本

项目截图

全栈项目架构,多终端通用API:

小程序的架构体系:

小程序数据从服务器到前端交互总结:

数据库设计:

参考store.sql文件

核心知识体系

1.thinkphp5.1相关的知识

  • TP5三大核心:路由、控制器、模型
  • 以ORM的方式查询数据库
  • 使用TP5验证器Validate构建整个验证层
  • 开发环境和生产环境下不同的全局异常处理机制
  • TP5缓存的使用
  • 在TP5中使用数据库事务

2.微信小程序+微信支付

  • 微信小程序登录状态维护
  • 微信支付接入
  • 微信模板消息
  • Class和Module面向对象的思维构建前端代码
  • 管理用户令牌
  • 体验优化

3.API接口的设计

  • 采用RESTFul API风格
  • (RESTFul API风格可参考GitHub 开发者文档)
  • 返回码、URL语义、HTTP动词、错误码、异常返回
  • 使用Token令牌来构建用户授权体系
  • API版本控制(v1、v2)

sunday-store's People

Contributors

cq-hsiao avatar

Stargazers

Echo avatar Chen,Yongze avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.