Skip to content

Examples of accessing DynamoDB using the AWS SDK in Golang and Node.js

Notifications You must be signed in to change notification settings

pawmart/dynamodb-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examples of accessing DynamoDB using the AWS SDK

Examples have been written in the following languagues...

  1. Node.js (javascript)
  2. Golang (coming soon)

Local vs Cloud DynamoDB

These examples write to a locally running DynamoDB instance (downloadable from AWS)...

Change the 'endpoint' in the AWS.config in each script to write the AWS cloud DynamoDB...

AWS.config.update({
   endpoint: "https://dynamodb.us-east-1.amazonaws.com"}
);

Running Examples

Go

$ go run go/movies_create_item.go
$ go run go/movies_create_table.go
$ go run go/movies_delete_item.go
$ go run go/movies_delete_table.go
$ go run go/movies_describe_table.go
$ go run go/movies_load_data.go
$ go run go/movies_query_year.go
$ go run go/movies_query_year_title.go
$ go run go/movies_read_item.go
$ go run go/movies_scan.go
$ go run go/movies_update_atomic_counter.go
$ go run go/movies_update_conditionally.go
$ go run go/movies_update_item.go

Node.js

$ node node/movies_create_item.js
$ node node/movies_create_table.js
$ node node/movies_delete_item.js
$ node node/movies_delete_table.js
$ node node/movies_load_data.js
$ node node/movies_query_year.js
$ node node/movies_query_year_title.js
$ node node/movies_query_pages.js
$ node node/movies_read_item.js
$ node node/movies_scan.js
$ node node/movies_update_atomic_counter.js
$ node node/movies_update_conditionally.js
$ node node/movies_update_item.js

Made with 💚 in Campbell, CA

About

Examples of accessing DynamoDB using the AWS SDK in Golang and Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 67.7%
  • JavaScript 32.3%