Skip to content

Refactor loopback-explorer integration in app.js template #34

Description

@bajtos

See the discussion in #33. We are trying to move app.start from loopback-explorer to loopback. The current integration with loopback-explorer is causing troubles:

  • workspace's app.js is loading the module
  • loopback's app.start wants to report the explorer's URL

Proposed solution:

  1. The code loading plugins (i.e. loopback-explorer) is responsible for handling the case where the module is not available.
  2. The plugin (loopback-explorer) is responsible for reporting information useful to the user. The message should be printed from an even handler listening on a new "start" event that is emitted by the app.start().

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions