Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 1.04 KB

README.MD

File metadata and controls

16 lines (12 loc) · 1.04 KB

The goal of this repo is to show how NodeJS can interact with an instance of dynamoDB. I use an express application for learning, and to demonstrate rest endpoints that can control dynamo db.

Setup:

  1. Install nodeJS and NPM
  2. Pull the repo, in the root folder do a npm install
  3. Start up a local dynamo db at localhost port 8000, or change the value of var:endpoint in the dynamoDBDao.js to the dynamo instance you prefer
  4. Start the server with a npm run devstart (default in the application is port 3000)
  5. Create a dynamo table at: http://localhost:3000/create_table
  6. Interact with the table at http://localhost:3000/ through the gui
  7. Delete the table at http://localhost:3000/delete_table

Troubleshooting

  • If you can not get Dynamo to connect I found it was generally a credentials issue. Per amazon a local file can be used: The AWS credentials file – located at ~/.aws/credentials on Linux, macOS, or Unix, or at C:\Users\USERNAME .aws\credentials on Windows. This file can contain multiple named profiles in addition to a default profile.