How to use the express-vue.init function in express-vue

To help you get started, we’ve selected a few express-vue 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 funsocietyirc / MrNodeBot / web / server.js View on Github external
else {
            jwtSecret = 'mrnodebot';
            logger.warn('You did not set a jwt api secret in express.jwt.secret, falling back to default');
        return jwtSecret;

    // Create Express Server
    const webServer = Express();

    // Initialize Helmet

    // Initiate express-vue
    const finalVueOptions = _.isObject(app.Config.vueOptions) ? _.defaults(expressVueOptions, app.Config.vueOptions) : expressVueOptions;
    const expressVueMiddleware = expressVue.init(finalVueOptions);

    // Hold on to HTTP Server
    const server = require('http').createServer(webServer);

    // Bind
    webServer.socketIO = socketIO(server);

    // Hold on to the Logging transports
    const transports = [];

    // Push the File Logging transports
        new (winston.transports.DailyRotateFile)({
            name: 'express-info-file',
            filename: 'logs/express-info.log',


Vue rendering engine for Express.js

Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular express-vue functions