DynamoDB basic feature Implementation.
Steps to install.
-
Install Gradle 4.3 (https://gradle.org/install/)
-
Run gradle clean build from terminal
-
To import all external dependencies in IntelliJ/ Eclipse run gradle cleanIdea idea / gradle cleanEclipse eclipse.
-
To run application : gradle jettyRun (Make sure that no service is using 8080 port)
-
You can see hello world at http://localhost:8080/DynamoProject/rest/hello.
-
Add lombok plugin https://projectlombok.org/ to your IDE.
-
Add AWS credentials as Environment variables. AWS_ACCESS_KEY_ID = A****************Q AWS_SECRET_ACCESS_KEY = v*****************************l OR To run dyamoDB locally. Follow the instructions http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html 1. Download the zip. Extract in some folder, lets say 'temp' 2. Run command from the folder temp/dynamoDb_latest.
-
Run main method from Connection class. It creates all the required tables for the application.