@suitespot/inversify-application
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Inversify Application Module Framework

Usage:

// Declare all functionality in Application Modules
class FancyModule extends ApplicationModule {
   
  public bind(container: Container): void {
    // bind some resources to the container
  }
    
  public start(container: Container): Promise<any> {
    // start any services that require external resources (e.g. database)
  }    
}


// bootstrap the application
let application = new InversifyApplication([
  new FancyModule()
  // ... other modules 
], LogFactory.getLogger('MyApp'));

application.start()
  .then(() => {
    console.log('Application Started');
  })
  .catch(err => {
    console.log('Application startup failed');
    process.exit(1);
  });

/@suitespot/inversify-application/

    Package Sidebar

    Install

    npm i @suitespot/inversify-application

    Weekly Downloads

    100

    Version

    0.3.0

    License

    LicenseRef-LICENSE

    Unpacked Size

    13 kB

    Total Files

    14

    Last publish

    Collaborators

    • jeffpottruff
    • mishrakunal
    • kitsonchan
    • markcabiliza
    • annadevibar
    • johngalang
    • jingguo_ca
    • vkudelin
    • dinochan-suitespot
    • juan.suitespottechnology
    • renzpulvira
    • russelrexjo
    • christopherlo
    • bfaircloo
    • sorinmichnea
    • suitewill
    • achiarotto
    • rakesh.pedada