Node.js MVC 框架:COKE.js

jopen 11年前發布 | 19K 次閱讀 Node.js Node.js 開發

COKE.js 是一個輕量級的 Node.js MVC 框架,可以加快你 web 程序的開發,很簡單,而模塊化。COKE 是在 Express 的基礎上建立的,所以用戶可以使用所有的 Express 的 middlewares ,可以直接連接 Express。
Node.js MVC 框架:COKE.js

特性:

  • 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

項目主頁:http://www.baiduhome.net/lib/view/home/1388229743734

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!