COKE.js 介绍
COKE.js 是一个轻量级的 Node.js MVC 框架,可以加快你 web 程序的开发。COKE 是在 Express
的基础上建立的,所以用户可以使用所有的 Express 的
middlewares ,可以直接连接 Express。
特性:
-
MVC structure.
-
Mongoose as ODM (mongodb), supports validation.
-
Lightening fast template parsing with thunder. It renders over a million pages within a second. However it can be replaced with any express compatible ones if it does not fit your need.
-
RESTful routing, supports namespace and nested resource. Thanks to RailwayJS.
-
Assets management (something like assets pipeline in Rails). COKE uses a YAML file to manage all the assets. You can group them, specify which assets to be used in the action view. On production they will be combined and minified with a version number at the end.
-
Middleware and 3rd party lib support, which means all the express and connect middlewares can be used directly.
-
Controller filters for flow control.
-
Comprehensive logger for debugging.
-
Powerful generators for project prototyping.
-
Model command line console.
-
Data migration tool.
-
Cluster support, gracefully shutdown all workers and the server.
-
Socket.io compatible.
要求:
-
node >= 0.8.x
-
mongodb >= 2.X
-
packages
- see packages.json
COKE.js 官网
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。