@ow-framework/koa
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@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();

/@ow-framework/koa/

    Package Sidebar

    Install

    npm i @ow-framework/koa

    Weekly Downloads

    3

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    24.1 kB

    Total Files

    7

    Last publish

    Collaborators

    • antsoldier
    • asovos
    • bonnevoyager
    • denis.loncaric
    • flipace
    • icky
    • mhawk
    • rgtk
    • visuallization