https://github.com/iggredible/dynamodb-with-nodejs
Understanding how DynamoDB works with NodeJS. Source: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.NodeJs.html
https://github.com/iggredible/dynamodb-with-nodejs
Last synced: 3 months ago
JSON representation
Understanding how DynamoDB works with NodeJS. Source: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.NodeJs.html
- Host: GitHub
- URL: https://github.com/iggredible/dynamodb-with-nodejs
- Owner: iggredible
- Created: 2017-12-16T22:01:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-16T22:01:37.000Z (over 7 years ago)
- Last Synced: 2025-01-07T06:43:22.014Z (5 months ago)
- Language: JavaScript
- Size: 720 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using DynamoDB with Node JS ([source](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.NodeJs.html))
### A repository created from Amazon's DynamoDB + NodeJS tutorial.
To run it:
1. Make sure you have `npm` installed
2. Make sure AWS DynamoDB is running locally. For guide how to run DynamoDB on local environment, check out [this page](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html).
3. Once you have DynamoDB currently running locally, run the code. For example, to create table, run `node MoviesCreateTable.js`.### Connecting DynamoDB table to AWS
To connect it to your own actual AWS account, modify the `endpoint`:
```
AWS.config.update({endpoint: "https://dynamodb.aws-region.amazonaws.com"});
```Also, make sure that your AWS has proper Access Key ID and Secret Access Key. For instruction, check out [this guide](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html).