Skip to content

ssrwpo/meteor-koa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ./