Search Latvian company register and their beneficiaries
This application will download company and beneficiary registers in CSV format from the Latvian state register and then import both files into local database. Simple rest interface then allows searchin database by name, surname and DOB.
You will need Java 11 for the application and Docker compose to spin up Postgresql database.
- Clone the repository.
- Type
docker-compose upin terminal. This will spin up docker container with postgresql database. - Type
./gradlew bootRunin terminal. This will start Gradle build and launch the app. - Use http://localhost:8080/swagger-ui/ to view and try the API
Basically it just downloads two CSV files and then loads them into DB using Spring Batch
- tests
- nicer db schema
- better API for browsing
1.docker-compose down --rmi all --volumes will shut down postgres and delete its volumes
2. application.properties has all the settings