How to use express-vue - 2 common examples

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
    webServer.use(helmet());

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

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

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

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

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

express-vue

Vue rendering engine for Express.js

Apache-2.0
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular express-vue functions