This repository contains the CountryFinder application, which helps users to find out which country a phone number belongs to. This application can:
- Parse wiki page with phone codes and assigned countries (url is specified in application.properties).
- Save extracted data into a database.
- In case of failed wiki page parsing, application can use old data, if it is not expired (expiration period specified in application.properties)
- If there is no valid data users can see a warning message on a main page.
To for successful building, compilation and testing, please make sure you have
- Java 17+
- Configured JAVA_HOME (Java 17+)
- Docker (To start container for test AvailableAppScenario IT). Otherwise, disable the test
- An instance of Postgresql DB.
Before start add DB credentials to application.properties.
To get test reports type: mnv clean test site
Reports will be available in target/site/surefire-report.html
To start application type: mvn spring-boot:run