A booter component for LoopBack 3 applications to expose their REST API via LoopBack 4
npm install @loopback/booter-lb3appBoot a LoopBack 3 application and expose its REST API via LoopBack 4.
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.
``sh`
npm install --save @loopback/booter-lb3app
Import the component at the top of your src/application.ts file.
`ts`
import {Lb3AppBooterComponent} from '@loopback/booter-lb3app';
Register the component in Application's constructor:
`ts`
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}lb3-models.{model name}
- binding key for models:
Run npm test` from the root folder.
See
all contributors.
MIT