Microservice with external APIs of PagoPA Backoffice
See the OpenApi 3 here.
- Java 17
- Spring Boot
- Spring Web
- Hibernate
- JPA
- Maven 3
- docker
from ./docker
directory
sh ./run_docker.sh local
ℹ️ Note: for PagoPa ACR is required the login az acr login -n <acr-name>
- git
- maven
- jdk-17
Start the springboot application with this command:
mvn spring-boot:run -Dspring.profiles.active=local
👀 You need to put in your local environment some variables
VARIABLE | USAGE | DEFAULT VALUE |
---|---|---|
MONGODB_CONNECTION_URI |
Connection string to the Backoffice MongoDB | |
MONGODB_NAME |
Name of the Backoffice MongoDB | pagopaBackoffice |
PAGOPA_APIM_API_CONFIG_API_KEY_PAGOPA |
APIM Key to connect to Api-config |
- local: to develop locally.
- default (no profile set): The application gets the properties from the environment (for Azure).
To run the Junit tests:
mvn clean verify
From ./integration-test/src
yarn install
yarn test
install k6 and then from ./performance-test/src
k6 run --env VARS=local.environment.json --env TEST_TYPE=./test-types/load.json main_scenario.js
Made with ❤️ by PagoPa S.p.A.
See CODEOWNERS
file