Note:- If You have already setup JAVA_17 then skip this step
- Java 17 Installation on macOS
brew tap homebrew/cask-versions brew install --cask temurin17
- Set JAVA_17 Env value. Follow step 2 here
How build & run this project?
Install and run DynamoDB on your local machine:
-
Install AWS CLI and Configure
- Install AWS CLI Run following commands
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg ./AWSCLIV2.pkg -target /
- To verify AWS CLI Run following commands
which aws
aws --version
- Configure AWS CLI
aws configure
- Enter AccessKey : "local"
- Enter SecretKey : "12345"
- Enter region : "us-west-2"
- Enter output : "json"
- Reference
- Install AWS CLI Run following commands
-
Install DynamoDB
- Download DynamoDB
- Extract downloaded file
- navigate to the directory where you extracted DynamoDBLocal.jar, and enter the following command.
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
- Verify DynamoDB
aws dynamodb list-tables --endpoint-url http://localhost:8000
- Create table for Ad
aws dynamodb create-table --cli-input-json file://example-table-definition.json --endpoint-url http://localhost:8000
- Reference
-
Visualizing the DynamoDB Table data
- Download and Install NoSQL Workbench
- Open NoSQL Workbench and Setup DynamoDB local connection
- Click on
operation builder
- Click on
Add connection
- Click on
DynamoDB Local
- Click on
- Reference
There are a few options to run the application (from more flexible to least)
-
You can just use the SpringBoot run functionality that is default in IntelliJ or SpringTools in Eclipse.
-
Start the service with Maven.
mvn spring-boot:run -Dspring.profiles.active=local
-
Package the jar file and run it
mvn clean package
java -jar ./target/example-service-exec.jar
You can use your favourite gRPC client (e.g. BloomRPC)
Import path in BloomRPC Then import .proto file
{
"alg": "HS256",
"typ": "JWT"
}