GitHunt
JO

joocoo/AWS_Javascript_SDK_DynamoDB_Demo

Simple example of the use of the AWS Javascript SDK v3 with DynamoDB

Intro

This is just a simple sample built using AWS Javascript SDKv3 to interact with DynamoDB.

It leverages the following classes:

Prequisites

How to run

A docker compose file is provided to you to run an instance of LocalStack.

docker-compose up -d

This example provides two methods to view or run the code.

First you must install any dependencies needed to run the code.

deno install

Then you can run the main.ts file directly by using the following:

deno run start

Jupyter Notebook

To get the deno jupyter runtime installed and running.

deno jupyter

If you have VS Code you can install the Jupyter Notebook Extension and run the selected deno runtime.

Here is a link to guide you https://docs.deno.com/runtime/reference/cli/jupyter/.

View in AWS NoSQL Workbench

  1. Download AWS NoSQL Workbench
  2. At the main screen click on Operation builder -> + Add Connection Add_Connection
  3. At the switch to the DynamoDB local tab and fill in the Connection name to what you prefer in this case we used Localstack and change the Port to 4566 if you plan on using the LocalStack docker container provided. Configure Connection
  4. You should see this View of Connections
  5. Open the connection and assuming you ran code to create the DB adding items from the jupyter notebook; you can see the following: View of Orders Table

Languages

Jupyter Notebook62.8%TypeScript37.2%

Contributors

Apache License 2.0
Created March 27, 2025
Updated March 27, 2025
joocoo/AWS_Javascript_SDK_DynamoDB_Demo | GitHunt