Skip to content

shennarwp/counterdynamo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

counterdynamo

Small programm to test the functionality of Amazon DynamoDB deployed locally in docker container.

Web-UI used to manage / view the DynamoDB local instance is dynamodb-admin.

What?

A small java programm that tries to write a key-value pair of integer and string every 2s in the local DynamoDB instance indefinitely. Every time the program is started, existing table in the database will be deleted and recreated.

The java programm, the DynamoDB instance, and the Web-UI will be deployed in docker container.

The DynamoDB instance is accessible in http://localhost:8000/, while the web-UI to view the contents of the database is accessible in http://localhost:8001/.

Configuration files location:

  • Amazon credentials and DynamoDB url configuration for the java program is located in src/main/resources/dynamodb.properties
  • The java programm container: /docker-compose.yml
  • DynamoDB container: compose/dynamodb/
  • Web-UI container: compose/dynadmin/

How?

Requirement

Steps

  • Create bridging network: docker network create counter

  • Start the DynamoDB container

    • go to compose/dynamodb/
    • docker-compose up
    • default DynamoDB shell in http://localhost:8000/shell/
  • Start the web-UI (optional)

    • go to compose/dynadmin/
    • docker-compose up
    • go to http://localhost:8001
  • Compile the programm in IntelliJ

  • Start the java programm

    • go to /
    • docker-compose build
    • docker-compose up

Screenshots

Example output: sample_output

Web-UI: ui

About

Small programm to test the functionality of Amazon DynamoDB within docker container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published