You must have Helm, Minikube and Maven to follow this steps.
First configure the values.yaml
file with the secrets and the necessary configuration for starting the application correctly.
TIP: For a correct Catena-X integration get the correct credentials from the Portal! You can also place this secrets in a Vault so that the credentials are safe!
To install the application using the configured helm charts use the following command from the project root directory:
helm install digital-product-pass ./charts/digital-product-pass -f charts/digital-product-pass/values.yaml
NOTE: This command will deploy the complete application.
Once the application is running, in order for you to access it, we need to expose the ports. Following this commands we will be able to access it.
Search for the application name:
kubectl get pods -n product-material-pass --no-headers | awk '{if ($1 ~ "consumer-backend-") print $1}'
Example:
Copy the pod name with the prefix consumer-backend
Paste the pod name after the port-forward
parameter.
kubectl -port-forward consumer-backend-67c4c9678-nqg7p 8888:8888 -n product-material-pass
NOTE: The default port set is
8888
however it can be changed in the configuration.
Go to the following url to check the health status:
localhost:8888/health
Use the following commands to install/compile the application:
cd dpp-backend/digitalproductpass
mvn clean install test
Substitute the <version>
variable with the current version of the Digital Product Pass Backend and run the jar:
./target/digitalproductpass-<version>-SNAPSHOT.jar
Once the application is running a tmp file will be created in the following directory: data/VaultConfig/vault.token.yml
client:
id: <Add the Keycloak client.id here>
secret: <Add the Keycloak client.secret here>
edc:
apiKey: <Add the Keycloak edc.apiKey here>
participantId: <Add the Keycloak edc.participantId here>
Use the following command using maven to start the application
mvn clean spring-boot:run
- Git
- Code editor (VS Code/ IntelliJ recommended)
- Nodejs 16 (Node Package Manager - npm)
- Vuejs
- Docker
- Git Bash (for windows operating system only)
git clone https://github.com/eclipse-tractusx/digital-product-pass.git
cd digital-product-pass/
npm install --legacy-peer-deps
npm run build
npm run serve
The following environment variables must be set in build and deploy script:
- PASS_VERSION
- APP_VERSION
- APP_API_TIMEOUT
- APP_API_MAX_RETRIES
- APP_API_DELAY
- IDENTITY_PROVIDER_URL
- HOST_URL
- DATA_URL
- KEYCLOAK_CLIENTID
- KEYCLOAK_REALM
- KEYCLOAK_ONLOAD
# run script
../buildAndDeploy.sh consumer-ui
You can run the application in docker container with existing image ghcr.io/eclipse-tractusx/digital-product-pass/consumer-ui:latest
from GitHub packages. You need to update the build and deploy script.
The consumer frontend is available in browser at http://localhost:8080
See VSCode configuration.