Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frangeris/react-native-dynamodb
[ABANDONED] API wrapper to access DynamoDB from React Native
https://github.com/frangeris/react-native-dynamodb
Last synced: 8 days ago
JSON representation
[ABANDONED] API wrapper to access DynamoDB from React Native
- Host: GitHub
- URL: https://github.com/frangeris/react-native-dynamodb
- Owner: frangeris
- License: mit
- Created: 2016-07-04T19:55:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-23T02:29:15.000Z (over 8 years ago)
- Last Synced: 2024-11-08T01:26:29.708Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Native DynamoDB
This library helps you access to [DynamoDB](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Introduction.html) from React Native, using [Low-Level API](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.LowLevelAPI.html). We use [leimd/react-native-aws-signature](https://github.com/leimd/react-native-aws-signature) for generate signatures for aws request
## Installation
```bash
npm install react-native-dynamodb --save
```## Usage
```javascript
import DynamoDB from 'react-native-dynamodb'let dynamodb = DynamoDB.init({
credentials: {
AccessKeyId: '',
SecretKey: ''
}
// region: 'us-east-1' - default, optional
// version: '20120810' - default, optional
})dynamodb.table('pirates').PutItem(
{
name: 'Jack Sparrow',
age: 30,
captain: true
},
{
ConditionExpression: "last_movie <> :movie",
ExpressionAttributeValues: {
":movie": {"S": "Pirates of the Caribbean: On Stranger Tides"}
}
})
.then((response) => console.log(response)) // AWS object response
.catch((error) => {
console.log(error)
})
```## Todo
Work in progress...
[API operations supported:](http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Operations.html)
* [x] [PutItem](http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_PutItem.html)## License
This software is licensed under the MIT License.
React and React Native are BSD licensed. Facebook also provide an additional patent grant.