Node.js MVC 框架 COKE.js
本文导语: COKE.js 是一个轻量级的 Node.js MVC 框架,可以加快你 web 程序的开发。COKE 是在 Express 的基础上建立的,所以用户可以使用所有的 Express 的 middlewares ,可以直接连接 Express。 特性: MVC structure. Mongoose as ODM (mongodb), supports validation. ...
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