This is a simple Spring Boot 2.1.3 web application with one controller (CustomerController
) with one action (list
)
which loads a csv file with customer data, processes it and lists potential duplicates and non-duplicates found.
This is the same Grails app https://github.com/gpottepalem/validity-grails-web written in Java with Spring Boot for comparing efforts and learning curve.
Nothing really is needed.
Simply run the following command from the main project directory:
./gradlew bootRun
End-point: customer
List customers data processed (html): curl http://localhost:8080/customer
List customers data processed (json): curl http://localhost:8080/customer?format=json
List customers data processed (xml) : curl http://localhost:8080/customer?format=xml
Simply run the following command from the main project directory to run all unit/integration/functional tests:
./gradlew clean test
Simply run the following command from the main project directory or point your browser to the following
build/reports/...
directory:
open ./build/reports/tests/test/index.html