Git Product home page Git Product logo

spring-petclinic's Introduction

Spring PetClinic Sample Application with integrated jQAssistant

With this software project, we demonstrate the usage of jQAssistant and Neo4j.

We've integrated jQAssistant in the Maven build of the Spring PetClinic sample application. By doing this, jQAssistant scans various software structures (Java ByteCode, Git commits, JUnit test results and so on) during the build process and stores this information into the Neo4j graph database.

This README shows you, how you can setup this software project by yourself. If you want to integrated jQAssistant in your own project, take a look at out 101 guide).

Prerequisites

Minimum requirements

Optional

  • To produce nice 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.

Understanding the Spring Petclinic application with a few diagrams

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

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/buschmais/spring-petclinic.git
cd spring-petclinic
./mvnw clean install
./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 + c on the command line.

Running jQAssistant / Neo4j locally

After shutting down the web application server, you can start jQAssistant's embedded Neo4j database server 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.

Taking a look at the self-validating, living architecture documentation

After the build, you can find the complete architecture documentation in target/html/index.html. The documentation is written in AsciiDoc and

  • defines the architecture rules in plain text
  • translates those rules into Cypher (Neo4j's query language)
  • validates the rules by executing the Cypher queries against the actual software
  • reports the results back directly into the document.

Please find more information about the various artifacts in the /docs directory or online.

Have fun!

spring-petclinic's People

Contributors

dirkmahler avatar arey avatar feststelltaste avatar cyrille-leclerc avatar gordonad avatar tduchateau avatar trepel avatar freemansoft avatar liouxiao avatar sebastianwendorf avatar rstoyanchev avatar obfischer avatar thinkshihang avatar srenkens avatar patrickcrocker avatar mklose avatar lukasz-szewc avatar boly38 avatar vladfau avatar tejasm avatar meltsufin avatar verydapeng avatar craigsdennis avatar colinbut avatar cbeams avatar bram-atmire avatar helloworld123122344134 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.