![local dynamodb testing local dynamodb testing](https://dmhnzl5mp9mj6.cloudfront.net/java_awsblog/images/test_table.jpg)
This will run a container exposing three ports: If you don't have Docker yet, you can get it here. Another good thing about this solution is that it works the same across all the operating systems and can be easily added to your Docker Compose setup. In this setup, DynamoDB is running in an isolated container on the port of your choice. This is my favorite way because it does not require Java installed.
Local dynamodb testing Offline#
![local dynamodb testing local dynamodb testing](https://www.rahulpnath.com/static/91ad5e5def89e37333032611d9aa1663/3c312/dynamodb_local_dynobase_scan.jpg)
![local dynamodb testing local dynamodb testing](https://pradeeploganathan.com/wp-content/uploads/2020/02/Docker-Pull-DynamoDb-2048x956.png)
In this guide, I'll show you how you can do that too. In some scenarios, it makes developing and testing applications without accessing DynamoDB easier. Until recently, when I discovered I can run DynamoDB offline and locally on my computer, without AWS Cloud. Since DynamoDB is fully managed NoSQL database, you cannot access it when you're offline. You want to rush into the implementation, but there's one problem: Obviously, during flight, there's no internet, but you just had one of these "Aha!" moments. Imagine you're traveling by plane to a different city, and the deadline for your DynamoDB-powered project is really tight.