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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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 flag service. It provides different strategies for handling feature flags.

Apache-2.0
Latest version published 3 days ago

Package Health Score

87 / 100
Full package analysis