JSPM

  • Created
  • Published
  • Downloads 1215
  • Score
    100M100P100Q127086F
  • License MIT

A booter component for LoopBack 3 applications to expose their REST API via LoopBack 4

Package Exports

  • @loopback/booter-lb3app

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@loopback/booter-lb3app) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@loopback/booter-lb3app

Boot a LoopBack 3 application and expose its REST API via LoopBack 4.

Overview

The @loopback/booter-lb3app package provides a way for LoopBack 3 developers to boot their LoopBack 3 application, convert the application's Swagger spec into OpenAPI v3, and then mount the application, including its spec, onto a target LoopBack 4 application.

Installation

npm install --save @loopback/booter-lb3app

Basic use

Import the component at the top of your src/application.ts file.

import {Lb3AppBooterComponent} from '@loopback/booter-lb3app';

Register the component in Application's constructor:

this.component(Lb3AppBooterComponent);

By default, the LoopBack 3 models and datasources will be bond to the application with naming conventions as:

  • binding key for datasources: lb3-datasources.{ds name}
  • binding key for models: lb3-models.{model name}

Contributions

Tests

Run npm test from the root folder.

Contributors

See all contributors.

License

MIT