This is a simple gRPC service that implements the NoSQL interface to provide access to DynamoDB. It uses the PartiQL query language to access the data.
- NodeJS 18+
- Yarn 1.22+
- Typescript 5+
- dynamo-access-layer
- anticorruption-layer
The following environment variables are required. Placing a .env file in the root of the project will automatically load these variables.
GRPC_SERVER_HOST="localhost"
GRPC_SERVER_PORT=50052
ENV=local
- Install dependencies.
dynamo-access-layer
uses topcoder-framework which is published in AWS CodeArtifact. To ensure all dependencies are correctly downloaded log into aws codeartifact first
aws codeartifact login --tool npm --repository topcoder-framework --domain topcoder --domain-owner 409275337247 --region us-east-1 --namespace @topcoder-framework
yarn i
Note: A valid AWS session is required for the above command to work. Ensure that you have the correct aws environment variables set
- Start the gRPC server
yarn start
The primary branch of this repo is the main
branch. Opening a pull request to the main branch will kick off building a docker image. Check CircleCI, specifically the Publish docker iamge to get the image tag. Use the tag for deploying to dev environment - see the branch deploy/dev of domain-challenge, buildimage.sh.
After the PR is merged, follow the same steps. For production deploys use deploy/prod
branch