poorly written and in its infancy, not intended for use by anyone except me
App {
id : {UUID||String}, // A UUID string that can be defined, otherwise it is generated automatically
logging : {Boolean}, // should the app log internal processes?
workingDirectory : {String}, // where the app works from
plugins : {
{String} : {String} //plugin_name : plugin_version
},
pluginOptions : {
path : {String}, // the path where plugins are stored
autoEnable : {Boolean} // auto enable plugins as they are found?
},
/*{Internal}*/Messages : {Array} // logged messages can be accessed here if logging is set to false
}
Starting a server
constApp=require("blue-eyeswhitedragon-app-generic");
let app =newApp({
logging :true,
workingDirectory :__dirname
}).startServer((server [, express[, bundledInit[, bundledMiddleware[, bundledStart]) => {
bundledInit &&bundledInit(); // if you want to use the bundled init setup
bundledMiddleware &&bundledMiddleware(); // if you want to use the bundled middleware set up/* futher setup/routes etc. */server.get("/", (req, res) => {
res.render("pages/index");
});
bundledStart &&bundledStart(); // if you want to use the bundled server listening start function
});