The power and elegance of koa in your @ow-framework application.
yarn add @ow-framework/koa
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.
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();