Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 702 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 702 Bytes

@ow-framework/koa

The power and elegance of koa in your @ow-framework application.

Install

yarn add @ow-framework/koa

Usage

import Ow from '@ow-framework/core';
import OwKoa from '@ow-framework/koa';

const app = new Ow();

app.addModules([
  OwKoa
]);

app.start();

This will start a server, listening on process.env.port or some random port if it's not specified.

Usage with options

import Ow from '@ow-framework/core';
import OwKoa from '@ow-framework/koa';

const app = new Ow();
const Koa = new OwKoa(app, {
  port: 7777
})

app.addModules([
  Koa
]);

app.start();