mapbox / dyno

simple dynamodb client
MIT License
78 stars 28 forks source link

Working with local DynamoDB #141

Closed Minstel closed 7 years ago

Minstel commented 7 years ago

Is it possible to make dyno work with local DynamoDB? I didn't find info about this. If it's not possible, it would be great to add this ability.

mcwhittemore commented 7 years ago

Yep. I tend to use this with dynalite.

Here is how you'd configure dyno rather than the AWS.DynamoDB.

var Dyno = require('dyno');

var dyno = Dyno({
    region: 'us-east-1',
    endpoint: 'http://localhost: 4567',
    table: 'table-name'
});

Please close if this worked for you.

mcwhittemore commented 7 years ago

Or... I can hit the wrong button and close this... :(

Minstel commented 7 years ago

@mcwhittemore Great thanks! I can not check it now or in nearest future, but I suppose that will work :)