Hey Dev Community! π
To install dynamoDB locally follow the below steps.
π οΈ Step 1: Download DynamoDB
Get DynamoDB Local for free from the official sources:
π₯οΈ Mac/Linux β Download tar.gz
π₯οΈ Windows β Download .zip
π§ Step 2: Install AWS CLI
To easily view tables and data in a GUI, install the AWS CLI.
here
π Step 3: Extract and Run DynamoDB
1οΈβ£ Extract the downloaded .zip file.
2οΈβ£ Navigate to the directory containing DynamoDBLocal.jar.
3οΈβ£ Run the following command:
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb -dbPath C:/dynamodb/data
π‘ Important: Ensure that the dynamodb/data directory exists in the C:/ drive. If not, create it using:
mkdir C:/dynamodb/data
π Step 4: Configure AWS Credentials for Local Use
Set up AWS credentials for local development using:
aws configure
π Step 5: Verify Tables
To check the available tables, run:
aws dynamodb list-tables --endpoint-url http://localhost:8000
π Your DynamoDB is running locally and now add a backend service and hit queries. or you can use terminal too to test it.
Your DynamoDB is running port by default on 8000, you can change with -port [port you want to keep]. and then check the data.
In the next part, weβll explore how to integrate DynamoDB with a Spring Boot application! π
Top comments (0)