spolu/node-dynamodb — Issue #6: Local Mode
Author: karlseguin
Created: 2012-01-23 14:33:32+00:00
State: open

Just wanted to get some feedback on a feature I'm working on for this: local development mode. The idea is that you can develop locally without access to EC2. I'm using MongoDB as the backend.

To enable it, you specify localmode in the config:

var ddb = require('../lib/ddb').ddb({localmode: {database: 'lm_test'})

(with an optional host and port value)

This causes the execute method to get taken over. I currently have CreateTable, DeleteTable and ListTables working. I'm trying to handle some of the errors (like duplicate creation, or deleting something that doest exist), but I see this as being the biggest problem. Gonna try to fake out the querying/insert/delete/update stuff tomorrow.

This is my branch for it:
https://github.com/karlseguin/node-dynamodb/tree/localmode