diff --git a/app/views/includes/foot.jade b/app/views/includes/foot.jade index 9f97a4bc79..34201dd05d 100755 --- a/app/views/includes/foot.jade +++ b/app/views/includes/foot.jade @@ -1,3 +1,5 @@ +footer + p Powered and developed by our MEAN Ninjas script(type='text/javascript', src='//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js') script(type='text/javascript', src='js/lib/bootstrap.min.js') diff --git a/package.json b/package.json index 2c0b3ccdb2..02a39a9041 100755 --- a/package.json +++ b/package.json @@ -31,6 +31,9 @@ , "async": "latest" , "view-helpers": "latest" , "forever": "latest" +// MEAN Modules + , "mean-logger": "latest" + } , "devDependencies": { "supertest": "latest" diff --git a/public/css/common.css b/public/css/common.css index 978e9e0dc0..8d716b6c33 100755 --- a/public/css/common.css +++ b/public/css/common.css @@ -6,4 +6,20 @@ .content { margin-top: 40px; width: 100%; -} \ No newline at end of file +} + +footer { + position:fixed; + left:0px; + bottom:0px; + height:30px; + width:100%; + background:#ddd; + -webkit-box-shadow: 0 8px 6px 6px black; + -moz-box-shadow: 0 8px 6px 6px black; + box-shadow: 0 8px 6px 6px black; +} +footer p{ + padding: 5px 0 12px 10px; +} + diff --git a/server.js b/server.js index 7a5aae235d..55625fafc0 100755 --- a/server.js +++ b/server.js @@ -26,7 +26,7 @@ var env = process.env.NODE_ENV || 'development' , mongoose = require('mongoose') // Bootstrap db connection -mongoose.connect(config.db) +var db = mongoose.connect(config.db) // Bootstrap models var models_path = __dirname + '/app/models' @@ -38,6 +38,8 @@ fs.readdirSync(models_path).forEach(function (file) { require('./config/passport')(passport, config) var app = express() + +require('mean-logger').init(app,db); // express settings require('./config/express')(app, config, passport)