dynamodb-localhost icon indicating copy to clipboard operation
dynamodb-localhost copied to clipboard

chore(bug): Update README + add async install

Open kolyaventuri opened this issue 1 year ago • 0 comments

What

  • Adds installAsync as a non-breaking alternative to `install``
    • Removes need for callback
  • Updates README to reflect need for install before start

Why

Using the install method as-is results in a situation where at worst, the server cannot be started, and at best there's a race condition, as the following start method does not wait for completion of the installation, and would subsequently fail image Code run in the above screenshot:

var dynamodbLocal = require('dynamodb-localhost');
dynamodbLocal.install();
dynamodbLocal.start({port: 8000});

kolyaventuri avatar Apr 18 '23 01:04 kolyaventuri