Skip to content
A node wrapper for the fake_dynamo gem (NB: this project has been superseded by mhart/dynalite)
Ruby Java C Ragel in Ruby Host CSS JavaScript Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
ruby
.gitignore
.travis.yml
LICENSE.txt
README.md
index.js
package.json
test.js

README.md

fake-dynamo-gem (obsolete)

NB: This project has been superseded by dynalite - please use that for your node.js mock DynamoDB needs.

Build Status

A node.js wrapper for the fake_dynamo gem.

For testing purposes mainly - and just because magneto isn't quite as mature yet.

Example

var fakeDynamoGem = require('fake-dynamo-gem')

fakeDynamoGem(function(err, fakeDynamo) {
  if (err) throw err

  // We have now spawned fake_dynamo with the default settings (port 4567)
  // fakeDynamo is just a standard ChildProcess object

  // Kill it when we're done testing (will also kill on process exit)
  fakeDynamo.kill()
})

// Can also pass custom args
fakeDynamoGem(['--port=1234', '--db=/tmp/fake_dynamo.fdb'], function(err, fakeDynamo) {
  if (err) throw err

  fakeDynamo.kill()
})

Also provides a nfakedynamo binary, which just delegates directly to fake_dynamo

API

fakeDynamoGem([spawnArgs], [spawnOptions], [callback])

Spawns fake_dynamo with the given args/options (requires Ruby 1.9 I believe)

Installation

With npm do:

npm install fake-dynamo-gem

Thanks

Thanks to @ananthakumaran for the great fake_dynamo project!

Something went wrong with that request. Please try again.