App skeleton

This commit is contained in:
Senad Uka
2018-08-05 12:55:43 +02:00
commit 52a9367d4e
72 changed files with 12652 additions and 0 deletions

52
config/globals.js Normal file
View File

@@ -0,0 +1,52 @@
/**
* Global Variable Configuration
* (sails.config.globals)
*
* Configure which global variables which will be exposed
* automatically by Sails.
*
* For more information on any of these options, check out:
* https://sailsjs.com/config/globals
*/
module.exports.globals = {
/****************************************************************************
* *
* Whether to expose the locally-installed Lodash as a global variable *
* (`_`), making it accessible throughout your app. *
* (See the link above for help.) *
* *
****************************************************************************/
_: require('@sailshq/lodash'),
/****************************************************************************
* *
* Whether to expose the locally-installed `async` as a global variable *
* (`async`), making it accessible throughout your app. *
* (See the link above for help.) *
* *
****************************************************************************/
async: require('async'),
/****************************************************************************
* *
* Whether to expose each of your app's models as global variables. *
* (See the link at the top of this file for more information.) *
* *
****************************************************************************/
models: true,
/****************************************************************************
* *
* Whether to expose the Sails app instance as a global variable (`sails`), *
* making it accessible throughout your app. *
* *
****************************************************************************/
sails: true,
};