cool things
Do meaningful things together
酷事就是让大家开心、让自己开心、又有意义的事。
cool things是一款应用,我将使用它跟我的朋友们一起互动、一起做酷事。
Application Introduction
朋友们可以在cool things上匿名发布自己觉得很酷的事,比如“在街头卖唱”。
有才华的朋友看见这条cool things后选择去实现,并把成果在cool things上晒出。
如果你觉得挺好玩,可以加入我们一起开发,开发也是一件很酷的事嘛。
frame
本项目没有使用任何主流框架,而是使用composer集成、个人架构的一个轻型框架。
框架完全放弃使用控制器渲染页面,页面静态化,前后端分离,纯api交互。
还是想种草我的这个框架。
- This framework has the same name as this project, cool things;
- MSC structure, model layer, service layer, controller layer, and the static backend of the page certainly has no view layer. What are you thinking about?
- Just write an array in route.php in the configuration file config directory;
- The controller layer is responsible for data acquisition and verification, as well as coordinated calls to service layer services;
- The service layer is responsible for the services of corresponding responsibilities and interacts with server data (such as database);
- The controller layer can only call the service layer in the same directory under the service space;
- It is recommended that a controller has only one main service layer, and all complex services are handed over to the main service layer;
- Calls from the service layer and controller layer are decoupled in this framework, and the service layer is called by the method of calling arrays.
9, 10, 11 Barabala
总而言之,我设计并实现的cool things框架是一个清新、简洁、优雅的框架^^。
cool things框架还是个孩子,我希望能有小伙伴加入一起让它成长。
Notice
本框架遵循极简的原则(其实是怕费事),所以我们只使用mysql!且!每个数据表的主键名只用"id"。
如果强行使用其它名字也可以勉强,但是有时候会出抛错的==
现在正在开发移动web版,后期逐步发布单页面版、微信小程序版。