INNER CODE UNIT · JavaScript

mongoose

Strider-CD/strider · apps/strider/dist-lib/app.js:52

    const mongoose = setupDb(config, (err) => {
        if (err) {
            process.exit(1);
        }
    });
    sessionStore = new mongoStore({
        mongooseConnection: mongoose.connection,
    });
    swig.init({
        root: config.viewpath,
        // allows errors to be thrown and caught by express instead of suppressed by Swig
        allowErrors: true,
        cache: false,
        filters: require('./utils/swig-filters'),
        tags: require('./utils/swig-tags').tags,
        extensions: { plugin: pluginTemplates },
    });
    const app = express();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…