How to use the unleash-server.start function in unleash-server

To help you get started, we’ve selected a few unleash-server examples, based on popular ways it is used in public projects.

github kindlyops / havengrc / unleash / index.js View on Github external
});
};
options.preRouterHook = gatekeeperAuthentication;


function serveFrontend(app) {
    app.use('/', express.static('/frontend'));
}

options.preHook = serveFrontend;

if (process.env.DATABASE_URL_FILE) {
    options.databaseUrl = fs.readFileSync(process.env.DATABASE_URL_FILE);
}

unleash
    .start(options)
    .then(server => {
        console.log(
            `Unleash API started on http://localhost:${server.app.get('port')}`
        );
    });

unleash-server

Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.

Apache-2.0
Latest version published 7 days ago

Package Health Score

93 / 100
Full package analysis

Similar packages