Getting started guide for an express app that relies on AWS DynamoDB as it's database.
- Setup AWS account here: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?refid=78b916d7-7c94-4cab-98d9-0ce5e648dd5f
- Follow the Javascript Developer AWS setup guide: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-started-nodejs.html
- This will include the necessary setup for your credentials and the general Node SDK
- This will set you up with a small Node script that accesses an S3 bucket (S3 is an object store/file store service on AWS)
- Follow this short guide to make sure that your shared credentials are correctly set up: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html
- Use the following guide to put together your Express API with Dynamo DB — honestly, their route naming for the REST API aren’t the best but I really like the explanations they have on the connection with DynamoDB and AWS https://referbruv.com/blog/reading-and-writing-to-aws-dynamodb-using-nodejs-with-example/
- Here are some more complex examples of interaction with DynamoDB using the Javascript SDK (they also have examples using async/await instead of promises if you prefer that): https://www.fernandomc.com/posts/eight-examples-of-fetching-data-from-dynamodb-with-node/