Refuctored version of "A sample Spring-based application"
Clone or download
Pull request Compare This branch is 29 commits ahead, 40 commits behind buschmais:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn
data
docs
jqassistant
src
.bowerrc
.editorconfig
.gitignore
.mailmap
.springBeans
.travis.yml
bower.json
mvnw
mvnw.cmd
pom.xml
readme.md
sonar-project.properties

readme.md

REFUCTORED Spring PetClinic Sample Application

see https://github.com/buschmais/spring-petclinic for the forked version of the original

Build Status

Prerequisites

Minimum requirements

Optional

  • To produce nicely looking diagrams, install GraphViz (download)

Installing and getting to know the sample application

Hint: Preferable, you use the Git bash command line or any Unix-like shell for these tasks.

For our use case, we take the sample application petclinic of the Spring Framework to demonstrate the usage of jQAssistant and Neo4j. The creator of jQAssistant already put almost everything in place. This version just adds some bad code to have something to analyze.

The sample application itself is a simple demo for organizing visits of pet owners to vets in a clinic.

Understanding the Spring Petclinic application with a few diagrams

Downloading and running the petclinic web application

First, we want to download the source code of the application with Git, build it with Maven (using mvnw) and running the embedded web application server tomcat7:

	git clone https://github.com/JavaOnAutobahn/spring-petclinic.git
	cd spring-petclinic
	./mvnw tomcat7:run

You can then access the petclinic web application with your browser here: http://localhost:9966/petclinic/

This is what it looks like:

To shutdown the server, press Ctrl + X on the command line.

Running jQAssistant / Neo4j locally

After shuting down the web application server, you can start jQAssistant with this Maven command:

	./mvnw jqassistant:server

You should see the following on the command line:

You can then access the Neo4j browser frontend with the scanned data here: http://localhost:7474

This is what it should look like after clicking the button in the upper left corner (symbol may differ):

Next steps

Next, you can click on the various labels in the drawer to explore the scanned software data. You can also use the Neo4j guide for jQAssistant (beta) by executing the following command

:play http://guides.neo4j.com/jqassistant

or by simply clicking this link: http://localhost:7474/browser?cmd=play&arg=http://guides.neo4j.com/jqassistant. The guide will show you some first steps with jQAssistant/Neo4j.

More information e. g. about the scanned Java code can be found in the documentation of jQAssistant: http://buschmais.github.io/jqassistant/doc/1.3.0/#_java_plugin.

Have fun!