Skip to content

Commit

Permalink
Merge pull request #15 from gbarosio/toasty
Browse files Browse the repository at this point in the history
updating npm packages to their latest version whereas available
  • Loading branch information
Chris Sevilleja committed Oct 3, 2017
2 parents 7f4cc5c + 4e9f27e commit 72a556c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"author": "Chris Sevilleja <scotch.io>",
"license": "MIT",
"dependencies": {
"express": "~4.0.0",
"morgan": "~1.0.0",
"mongoose" : "~4.6.8",
"body-parser": "~1.0.1"
"express": "~4.16.1",
"morgan": "~1.9.0",
"mongoose" : "~4.11.14",
"body-parser": "~1.18.2"
}
}
11 changes: 11 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@ app.use(bodyParser.json());

var port = process.env.PORT || 8080; // set our port

// DATABASE SETUP
var mongoose = require('mongoose');
mongoose.connect('mongodb://node:node@novus.modulusmongo.net:27017/Iganiq8o'); // connect to our database

// Handle the connection event
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));

db.once('open', function() {
console.log("DB connection alive");
});

// Bear models lives here
var Bear = require('./app/models/bear');

// ROUTES FOR OUR API
Expand Down

0 comments on commit 72a556c

Please sign in to comment.