/go-dynamodb-ambiguous-arrays-codecs

Custom types for DynamoDB to handle case when we need to cast several types in db into single type in our code.

Primary LanguageGoThe UnlicenseUnlicense

This is a demonstration purpose app to show how to use inbuilt un/marshalling functionality of DynamoDB in AWS SDK for Golang.

Pre-requisite

  • Docker
  • Golang 1.21 or higher

How to run

  • Clone the repo
  • Use following Makefile commands to run the app
    • make up to run the app and DynamoDB in docker compose locally
    • make up-dynamo to run only DynamoDB in docker compose locally
    • make down to stop the running app and/or DynamoDB
  • After you're done shutdown containers by running make down

How to debug

  • Run DynamoDB in container by running make up-dynamo
  • Install dependencies by running make deps
  • Run the app in debug mode from yor IDE of choice and passing environment variable to the container DYANMODB_HOST=http://localhost:8000
  • After you're done shutdown containers by running make down