Skip to content

Commit

Permalink
migrate to Express 4.x: change package.json dependencies, change json…
Browse files Browse the repository at this point in the history
… and url middlewares to bodyparser
  • Loading branch information
Azat Mardanov committed Apr 28, 2014
1 parent 65fe114 commit f641986
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
> Node.js REST API Example with MongoDB, Mongoskin, Express
# Express.js 3.x
# Express.js 4.x

`master` branch

Expand Down
4 changes: 2 additions & 2 deletions express.js
@@ -1,9 +1,9 @@
var express = require('express')
, mongoskin = require('mongoskin')
, bodyParser = require('body-parser')

var app = express()
app.use(express.json())
app.use(express.urlencoded())
app.use(bodyParser())

var db = mongoskin.db('mongodb://@localhost:27017/test', {safe:true});

Expand Down
9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -17,12 +17,13 @@
"url": "https://github.com/azat-co/rest-api-express/issues"
},
"dependencies": {
"express": "~3.5.1",
"mongoskin": "~1.3.20"
"mongoskin": "~1.4.1",
"express": "~4.1.1",
"body-parser": "~1.0.2"
},
"devDependencies": {
"superagent": "~0.17.0",
"expect.js": "~0.3.1",
"mocha": "~1.18.2",
"expect.js": "~0.3.1"
"superagent": "~0.17.0"
}
}

0 comments on commit f641986

Please sign in to comment.