{"id":16112988,"url":"https://github.com/guilospanck/dynamodb-and-nodejs","last_synced_at":"2026-05-07T18:40:08.883Z","repository":{"id":103566850,"uuid":"399479902","full_name":"Guilospanck/dynamodb-and-nodejs","owner":"Guilospanck","description":"POC for using DynamoDB with Node.js","archived":false,"fork":false,"pushed_at":"2021-09-23T20:27:23.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-12T12:55:46.153Z","etag":null,"topics":["aws","aws-sdk-javascript","dynamodb","dynamodb-local","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Guilospanck.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-24T13:41:29.000Z","updated_at":"2022-12-14T14:48:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"386d1cb2-b516-483e-abae-7f3558dc7c29","html_url":"https://github.com/Guilospanck/dynamodb-and-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guilospanck%2Fdynamodb-and-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guilospanck%2Fdynamodb-and-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guilospanck%2Fdynamodb-and-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Guilospanck%2Fdynamodb-and-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Guilospanck","download_url":"https://codeload.github.com/Guilospanck/dynamodb-and-nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247446871,"owners_count":20940199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-sdk-javascript","dynamodb","dynamodb-local","nodejs"],"created_at":"2024-10-09T20:09:55.579Z","updated_at":"2026-05-07T18:40:08.847Z","avatar_url":"https://github.com/Guilospanck.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DynamoDBAndNodejs\nSimple POC to use DynamoDB with Node.js\n\n## Step-By-Step\n- First install AWS CLI\n```bash\ncurl \"https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip\" -o \"awscliv2.zip\"\nunzip awscliv2.zip\nsudo ./aws/install\n```\n\u003e Note that you must have unzip installed. If you don't, install it by running ``` sudo apt-get install unzip ```\n\n- Now you must have DynamoDB on the run (AWS) or locally. To install locally, you will need \u003ci\u003eDocker\u003c/i\u003e. The image used to run DynamoDB locally is ```amazon/dynamodb-local```. You can run it on your computer by typing on a terminal:\n```bash\ndocker run --rm -p 8000:8000 -d amazon/dynamodb-local\n```\n\n- You`ll need AWS SDK For Javascript in order to run this examples. There are two versions: v2 and v3. The primary changes between them is that v3 is modularized (so you won't need to download every single package out there just to run one service from AWS) and have a middleware stack to control the lifecycle of an operation call. To install v2, do:\n```bash\nyarn add aws-sdk\n```\nTo install v3 for DynamoDB, do:\n```bash\nyarn add @aws-sdk/client-dynamodb @aws-sdk/lib-dynamodb @aws-sdk/util-dynamodb\n```\n\u003e You may reference to the commits in order to see the differences between v2 and v3 SDKs.\n\n- To run locally, you need to AWS configure. To do that, follow this:\n```bash\n$ aws configure\nAWS Access Key ID []: local\nAWS Secret Access Key []: local\nDefault region name []: us-east-1\nDefault output format [None]:\n```\n\n## Running this POC\n- Git clone this repository:\n```bash\ngit clone https://github.com/Guilospanck/DynamoDBAndNodejs.git\n```\n\n- Run \u003ccode\u003eyarn install\u003c/code\u003e to install depedencies.\n\n- Be sure to have the image in Docker up and running (see \u003cb\u003eStep-By-Step\u003c/b\u003e for more information).\n\n- And then run:\n```bash\nnode src/table/createTable.js    // to create a new DynamoDB table\nnode src/item/insertItem.js      // to insert a new item in the table\nnode src/item/getItem.js         // to get the new item inserted\n```\n\n# Referencies\n- [AWS Docs - Class DocumentClient](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB/DocumentClient.html)\n- [AWS Docs - Using DocumentClient AWS SDK v2](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/dynamodb-example-document-client.html)\n- [AWS Docs - Using DocumentClient AWS SDK v3](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/dynamodb-example-dynamodb-utilities.html)\n- [AWS Docs - Getting Started With DynamoDB](https://docs.amazonaws.cn/en_us/amazondynamodb/latest/developerguide/GettingStartedDynamoDB.html)\n- [AWS Docs - AWS SDK v3 DynamoDB Client](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-dynamodb/globals.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilospanck%2Fdynamodb-and-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguilospanck%2Fdynamodb-and-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguilospanck%2Fdynamodb-and-nodejs/lists"}