DynamoDB storage backend for entity-api
dynamodb-storage-backend provides DynamoDB storage for Entity API.
Installation
Using npm:
$ npm install --save dynamodb-storage-backend
Example usage
AWSconfig const DB_SCHEMAS = schema: TableName: 'message' AttributeDefinitions: AttributeName: 'id' AttributeType: 'S' KeySchema: AttributeName: 'id' KeyType: 'HASH' ProvisionedThroughput: ReadCapacityUnits: '1' WriteCapacityUnits: '1' const backend = dynamodb: // Dynamodb endpoint to be used. This uses Dynamodb local endpoint: 'http://localhost:8000' { variablesentityTypeId = 'message' variablesentityClass = MessageEntity variableshandlers = storage: tablePrefix: 'entity_' storage: backend schemaData: DB_SCHEMAS view: variables supervariables }
Test
Run tests using npm:
$ npm run test