Skip to content

Boot and mount LB3 app #2391

@bajtos

Description

@bajtos

This is a follow-up for the spike #2318, see the discussion and PoC code for more context.

Implement @loopback/booter-lb3app, a Booter implementation that takes existing LB3 codebase, boots the application, converts its Swagger spec to OpenAPI v3 and then mounts the app on the target LB4 application, including the spec.

The booter package should not have any runtime dependency on @loopback/boot, it should use peerDependencies to specify which core packages it works with and dev-dependencies for development & testing. List of packages to put in peer dependencies:

  • @loopback/core
  • @loopback/boot
  • @loopback/rest

Proposed user experience: README#basic-use

PoC implementation: lb3app.booter.ts

Related issues: #1849 #2389

Acceptance criteria

  • New package packages/booter-lb3app
  • Adequate test coverage
  • A README file providing enough information for users discovering this package via npm. Make sure to adhere to our README guidelines
  • Configure our docs to render booter's README under Using components sidebar section. Use the same approach we did for REST API Explorer, see README layout for technical details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions