gRPC service for topcoder anti-corruption layer. This service writes changes that happen in v5 to the legacy database to keep the legacy system happy and available for all legacy systems (OR, loaders) that interact with it.
See domain-challenge for more information.
- 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=40020
GRPC_RDB_SERVER_HOST=localhost
GRPC_RDB_SERVER_PORT=9090
GRPC_NOSQL_SERVER_HOST=localhost
GRPC_NOSQL_SERVER_PORT=50051
GRPC_CHALLENGE_DOMAIN_SERVER_HOST=localhost
GRPC_CHALLENGE_DOMAIN_SERVER_PORT=8888
ENV=local
- Install dependencies.
anticorruption-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