Koa next generation web framework with Meteor
$ meteor npm i -S koa@next
$ meteor add ssrwpo:meteor-koa
See koa api for more details.
meteor-koa
is only available on server side. (Meteor.isServer
)
import { koa } from 'meteor/ssrwpo:meteor-koa';
const app = koa();
app.use((ctx) => {
ctx.body = 'Hello World';
});
Koa has many additional packages listed here.
You can use them with meteor-koa
, just simply add them with npm
in your meteor project:
$ meteor npm install <koa-plugins>
$ meteor test-packages ./ --driver-package practicalmeteor:mocha
With spacejam
$ spacejam-mocha ./