This project implements the APIs to enable user receipts for ecommerce platform.
Install the dependencies:
$ yarn install
Create a file .env
in your cloned repo, with the contents similar to .env.example
Variable name | Description | type | required |
---|---|---|---|
PERSONAL_DATA_VAULT_API_KEY | API Key for Personal Data Vault (PDV is used to safely encrypt PIIs, in this case it will be used to encrypt the body with sensitive data to write on the queues) | string | yes |
PERSONAL_DATA_VAULT_API_HOST | API base host for Personal Data Vault | string | yes |
PERSONAL_DATA_VAULT_API_BASE_PATH | API base path for Personal Data Vault | string | no |
STORAGE_TRANSIENT_CONNECTION_STRING | Storage transient queues connection string | string | yes |
STORAGE_DEADLETTER_CONNECTION_STRING | Storage deadletter queues connection string | string | yes |
$ yarn start
The server should reload automatically when the code changes.
This microservice use https://github.com/pagopa/aks-microservice-chart-blueprint to release it in k8s.
Follow this steps if you need to upgrade the microservice-chart release.
apiVersion: v2
name: microservice-ms
description: microservice-ms
type: application
version: 1.0.0
appVersion: 1.0.0
dependencies:
- name: microservice-chart
version: 1.21.0
repository: 'https://pagopa.github.io/aks-microservice-chart-blueprint'
helm dependency update helm/
Repo has Github workflow and actions that trigger Azure devops deploy pipeline once a PR is merged on main branch.
In order to properly set version bump parameters for call Azure devops deploy pipelines will be check for the following tags presence during PR analysis:
Tag | Semantic versioning scope | Meaning |
---|---|---|
patch | Application version | Patch-bump application version into pom.xml and Chart app version |
minor | Application version | Minor-bump application version into pom.xml and Chart app version |
major | Application version | Major-bump application version into pom.xml and Chart app version |
ignore-for-release | Application version | Ignore application version bump |
chart-patch | Chart version | Patch-bump Chart version |
chart-minor | Chart version | Minor-bump Chart version |
chart-major | Chart version | Major-bump Chart version |
skip-release | Any | The release will be skipped altogether |
For the check to be successfully passed only one of the Application version
labels and only ones of
the Chart version
labels must be contemporary present for a given PR or the skip-release
for skipping release step