vulcain-ext-express
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Vulcain extension to use express as server adapter

How to use it

Install package with

npm install vulcain-ext-express --save

Create a new adapter extending ExpressAdapter which will replace the default adapter

import { ExpressAdapter } from 'vulcain-ext-express';
 
// Declare your new adapter before running application
@Injectable(LifeTime.Singleton, DefaultServiceNames.ServerAdapter )
class MyAdapter extends ExpressAdapter {
    initializeRoutes(express) {
        // Add express initialization here
    }
}
 
// MyAdapter will be use automatically
let app = new ApplicationBuilder('Domain')
    .runAsync();

Dependencies (3)

Dev Dependencies (1)

Package Sidebar

Install

npm i vulcain-ext-express

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • ametge