0.0.2 • Published 9 years ago

microframework-t-event-dispatcher v0.0.2

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
9 years ago

T-Event-Dispatcher module for Microframework

Adds integration between t-event-dispatcher and microframework.

Usage

  1. Install module:

    npm install --save microframework-t-event-dispatcher

  2. Simply register module in the microframework when you are bootstrapping it.

        import {MicroFrameworkBootstrapper} from "microframework/MicroFrameworkBootstrapper";
        import {TEventDispatcherModule} from "microframework-t-event-dispatcher/TEventDispatcherModule";
        
        new MicroFrameworkBootstrapper({ baseDirectory: __dirname })
            .registerModules([
                new TEventDispatcherModule()
            ])
            .bootstrap()
            .then(result => console.log('Module is running. Subscribers can be used now'))
            .catch(error => console.error('Error: ', error));
            
  3. Now you can use t-event-dispatcher module in your microframework.

Todos

  • cover with tests
  • add more docs