windshield-factory
v0.0.2
Published
Windshield Factory
Downloads
1
Readme
Windshield Factory
Usage Example
'use strict';
const WindshieldFactory = require('cars-windshield-factory');
const handlebars = require('handlebars');
const path = require('path');
let windshieldOptions = {
handlebars,
routes: require('./routes'),
components: require('./components')()
};
WindshieldFactory(windshieldOptions, function (err, server) {
if (err) console.error(err);
server.start((err) => {
if (err) console.error(err);
console.log('info', "options.server running at : " + server.info.uri + " in '" + process.env.NODE_ENV + "' mode");
});
});