Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Adding drafts for mean-module integration, footer
Browse files Browse the repository at this point in the history
  • Loading branch information
liorkesos committed Jun 18, 2013
1 parent 0addcdf commit f49c329
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/views/includes/foot.jade
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
, "async": "latest"
, "view-helpers": "latest"
, "forever": "latest"
// MEAN Modules
, "mean-logger": "latest"

}
, "devDependencies": {
"supertest": "latest"
Expand Down
18 changes: 17 additions & 1 deletion public/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

4 changes: 3 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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)

Expand Down

0 comments on commit f49c329

Please sign in to comment.