This service gets data from hpms and shares contract information with other services.
Anyone committing to this repo must use the pre-commit hook to lower the likelihood that secrets will be exposed.
You can install pre-commit using the MacOS package manager Homebrew:
brew install pre-commit
Other installation options can be found in the pre-commit documentation.
Run the following command to install the gitleaks hook:
pre-commit install
This will download and install the pre-commit hooks specified in .pre-commit-config.yaml
.
-
Run Postgress/SQS using Docker and localstack
$ docker-compose up db localstack
Contract Service Setup 2. Select Run/Debug Configuration > Edit Configurations > add configuration (+) > Spring Boot 3. In Main Class select gov.cms.ab2d.contracts.SpringBootApp 4. Go to 1Password and search for 'Event Service Local Env Variables' or 'AB2D Local Env Variables'. Use the configs in the note for the Environment Variables field 5. Run the configuration
- Go to path to access swagger Locally: http://localhost:8070/swagger-ui/index.html