npm.io
0.2.5 • Published 3 years ago

@capsule-cat/propel-express

Licence
MIT
Version
0.2.5
Deps
0
Size
41 kB
Vulns
0
Weekly
0

@capsule-cat/propel-express

Propel Plugin and decorators to supplement Express usage with @capsule-cat/propel-server.

Getting Started

To install the package, run the following command:

npm install --save @capsule-cat/propel-express

This will install the package as a dependency.

Usage

Add the Propel Express plugin to the initialization of the @capsule-cat/propel-forward package.

import { PropelExpressPlugin } from "@capsule-cat/propel-express";
import { init } from "@capsule-cat/propel-forward";

async function main() {
    await init([new PropelExpressPlugin()]);
}

This will add Express to the dependency injection container, and will auto-start an Express server on default port 3000 for you.