0.0.7 • Published 7 years ago

dinossauro v0.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

dinossauro

Dinossauro is a simple way of running the last dynamodb-local version over node

npm install dinossauro
// usage with mocha

const dinossauro = require('dinossauro');

describe('my acceptance test', () => {
  before(dinossauro.up);
  after(dinossauro.down);
});
// dinossauro.up returns a promise that will resolve when dynamo is ready
dinossauro.up()
  .then(dynoDbProcess => {
    // here you can do anything you want with the dynamo process
    dynoDbProcess.stdout.pipe(process.stdoud);
  });
// dinossauro.up accepts an options object parameter which is passed to dynamo
// the default values follow:
{
  port: 8000,
  inMemory: true,
  sharedDb: true
}

// if you pass an dbPath parameter then inMemory is automatically set to false
{
  dbPath: '/tmp/mydbfolder'
}
0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago