Nunjucks Powers Mozilla

    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();

    Keywords

    none

    Install

    npm i vulcain-ext-express

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    Apache-2.0

    Last publish

    Collaborators

    • ametge