This web application shows a brief chart of vehicle average miles per gallon over recent history. It also allows you to filter on basic principles like year and make to narrow down the results.
- Mongo < 3.6. The current version of spring-data-mongodb (2.0.X) is incompatible with Mongo 3.6 and beyond.
- Java 1.8
Note: you must configure the contrastConfiguration settings from the Contrast UI (under Your Account) within the build.gradle file in this project.
- Start MongoDB with mongod See: https://docs.mongodb.org/manual/tutorial/manage-mongodb-processes/
- gradle build bootRun
Note: Spring takes care of the database creation and assumes localhost:27017 for location Then go to https://localhost:8080/
gradle build contrastInstall
java -javaagent:build/contrast.jar -Dcontrast.appname=mytestapp -Dcontrast.server=mytestserver -jar build/libs/Contrast-Sample-Gradle-Application-0.0.1-SNAPSHOT.jar
The application will now show up in the Applications tab of the Contrast UI
gradle build contrastVerify
gradle test