-
Please go into the package folder „company-tours”
-
Run build: mvn clean package spring-boot:repackage
-
Run application: java -jar target/vmtours-0.0.1-SNAPSHOT.jar How to run tests
-
Please go into the package folder „company-tours”
-
Run tests: mvn test Additional curl requests while running the app:
curl --request POST \
--url http://localhost:8081/tours/refresh \
--user 'admin:admin12' \
--header 'Content-Type: application/json' \
--header 'cache-control: no-cache' \
--data '{"filter": null}'
curl --request POST \
--url http://localhost:8081/tours/refresh \
--user 'admin:admin12' \
--header 'Content-Type: application/json' \
--header 'cache-control: no-cache' \
--data '{"filter": "history"}'
curl --request GET \
-u john:john12 \
http://localhost:8081/tours
curl --request GET \
-u john:john12 \
http://localhost:8081/tours?filter=Cheers%20in%20the%20Liget
- After building the app
- Go into target folder under app
- open target/site/jacoco/index.html in the browser