mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-05 11:41:01 +01:00
Adding drafts for mean-module integration, footer
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
footer
|
||||
p Powered and developed by our <a href="http://meanleanstartupmachine.com">MEAN Ninjas</a>
|
||||
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')
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
, "async": "latest"
|
||||
, "view-helpers": "latest"
|
||||
, "forever": "latest"
|
||||
// MEAN Modules
|
||||
, "mean-logger": "latest"
|
||||
|
||||
}
|
||||
, "devDependencies": {
|
||||
"supertest": "latest"
|
||||
|
||||
@@ -6,4 +6,20 @@
|
||||
.content {
|
||||
margin-top: 40px;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user