0.0.2 • Published 7 months ago

@kathirvelangles/shared-repo v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

shared-repo

LoopBack

Installation

Install SharedRepoComponent using npm;

$ [npm install | yarn add] shared-repo

Basic Use

Configure and load SharedRepoComponent in the application constructor as shown below.

import {SharedRepoComponent, SharedRepoComponentOptions, DEFAULT_SHARED_REPO_OPTIONS} from 'shared-repo';
// ...
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
  constructor(options: ApplicationConfig = {}) {
    const opts: SharedRepoComponentOptions = DEFAULT_SHARED_REPO_OPTIONS;
    this.configure(SharedRepoComponentBindings.COMPONENT).to(opts);
      // Put the configuration options here
    });
    this.component(SharedRepoComponent);
    // ...
  }
  // ...
}
0.0.2

7 months ago

0.0.1

7 months ago