Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.15 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.15 KB

ssr-wpo:meteor-koa

Koa next generation web framework with Meteor

Table of contents

$ 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
$ spacejam-mocha ./