@webiny/api-headless-cms-ddb-es
Version:
DynamoDB and Elasticsearch storage operations plugin for Headless CMS API.
35 lines (24 loc) • 1.18 kB
Markdown
# @webiny/api-headless-cms-ddb-es
[](https://www.npmjs.com/package/@webiny/api-headless-cms-ddb-es)
[](https://www.npmjs.com/package/@webiny/api-headless-cms-ddb-es)
[](https://github.com/prettier/prettier)
[](http://makeapullrequest.com)
## Install
```
npm install --save @webiny/api-headless-cms-ddb-es
```
Or if you prefer yarn:
```
yarn add @webiny/api-headless-cms-ddb-es
```
## Testing
To run the tests only for this package you must filter it with keywords.
### Env variables
###### LOCAL_ELASTICSEARCH
If set, does not run Elasticsearch when starting the tests, use local one. You must install it and run if, of course.
###### ELASTICSEARCH_PORT
Custom port for local elasticsearch.
### Command
````
ELASTICSEARCH_PORT=9200 LOCAL_ELASTICSEARCH=true yarn test packages/api-headless-cms --keyword=cms:ddb-es --keyword=cms:base
````