KoaHub.js – Node.js Web-Rapid-Development-Framework basierend auf der Koa.js-Plattform
Die Struktur imitiert die Thinkphp-Struktur
Installation<code class="prettyprint linenums lang-php">Installation<br>
<br>
$ npm install koahub<br>
Use with koa<br>
<br>
var app = require('koa')();<br>
var router = require('koa-router')();<br>
<br>
require('koahub');<br>
<br>
for (var key in koahub.controller){<br>
router.use(key, koahub.controller[key]);<br>
}<br>
<br>
// sample as <br>
router.use('/home', auth('home').skip({path: [/public/]}));<br>
app.use(router.routes());<br>
<br>
// sample as <br>
console.log(koahub.model);<br>
console.log(koahub.controller);<br>
console.log(koahub.util);<br>
<br>
app.listen(3000);
$ npm install koahub