express-dyngodb
v0.1.3
Published
Simple dyngodb middleware for express
Downloads
1
Readme
express-dyngodb
Simple express middleware for dyngodb
Installation
$ npm install express-dyngodb
API
app.js
var express = require('express'),
gson = require('express-dyngodb');
var app = express();
app.use(dyngodb());
app.get('/some/:id',function (req, res, next)
{
req.db.test.findOne({ _id: req.params.id },
.result(function (result)
{
res.send(result);
})
.error(next);
})
Local
To use DynamoDB Local
$ node app.js --local