A Spring 5 web application that allows the user to see who the heavyweight boxing champion of the world was on a specified date (and not much else!). The data is taken from Wikipedia and stuck in a document database. This database can be refreshed, however seeing as the project is now pinned to a fixed version of the Wikipedia page, this is a pointless exercise.
- Java 8
- MongoDB
- Tomcat / Tomcat manager admin
- Java 8
- Docker
- Docker
- Uses the Gradle Cargo Plugin v2
- Start Tomcat
- Start MongoDB
./gradlew clean war cargoReDeployRemote
- See the
tomcat-manager-mongo
project for a ready-to-use container script
- See the
heavyweight-deploy
project for a containerised version of this project.
- Service will deploy to
http://localhost:8080/heavyweight
- First hit Resource (GET):
/update
- to update the database from Wikipedia
- Then Resource (GET):
/query?date=yyyy-mm-dd
- to query by date
- Unit tests:
./gradlew test
- Integration tests:
./gradlew integrationTest