Hikit ERT is a microservice responsible for retrieving data from ER Tourism API (https://apt-servizi.github.io/openapi-ert/), that will serve to integrate ERT data with Hikit service.
- JDK 11
- Maven 3
First, clone and build commons: https://github.com/SeC-Hikit/Hikit-Common.
Then, after cloning this repo, simply run mvn install -f root/pom.xml
.
To include all dependencies in a portable uber-jar, run mvn install -f root/pom.xml -P package
.
There are two main types of tests written to address the Hikit QA: unit test and integration test.
The latter requires the dependencies to be up and running as it tests application operations connecting to them.
Once the dependencies are made available, to run the integration tests, simply execute mvn install -P it
.
Import municipality data by running the script contained in /init folder against the database instance.
Hikit ERT requires a MongoDB 4.x instance in order to store ERT data
Since it does not support authentication, Hikit ERT must run in a DMZ.
Configure the application.yml
file to fit the application runtime to your needs.
For more on the system properties, check out the repo wiki pages.
By default, the openAPI v3 specs are exposed at api/v1/api-docs
.
Alternatively, to interact directly with the REST API, the Swagger UI can be found at api/v1/api-ui.html
.