# Distributed version of the Spring PetClinic Sample Application built with Spring Cloud [](https://travis-ci.org/spring-petclinic/spring-petclinic-microservices/)
## Understanding the Spring Petclinic application with a few diagrams
<ahref="https://speakerdeck.com/michaelisvy/spring-petclinic-sample-application">See the presentation here</a>
You can then access petclinic here: http://localhost:8080/
## In case you find a bug/suggested improvement for Spring Petclinic
Our issue tracker is available here: https://github.com/spring-petclinic/spring-petclinic-microservices/issues
## Database configuration
In its default configuration, Petclinic uses an in-memory database (HSQLDB) which
gets populated at startup with data. A similar setup is provided for MySql in case a persistent database configuration is needed.
Note that whenever the database type is changed, the data-access.properties file needs to be updated and the mysql-connector-java artifact from the pom.xml needs to be uncommented.
You may start a MySql database with docker:
```
docker run -e MYSQL_ROOT_PASSWORD=petclinic -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql:5.7.8
```
## Working with Petclinic in Eclipse/STS
### prerequisites
The following items should be installed in your system:
<td>Use JCache with EhCache <ahref="/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/config/CacheConfig.java">CacheConfig.java</a><ahref="/src/main/resources/ehcache.xml">ehcache.xml</a></td>
</tr>
<tr>
<td>Homepage</td>
<td>Map root context to the index.html template <ahref="/springboot-petclinic-server/src/main/java/org/springframework/samples/petclinic/config/WebConfig.java">WebConfig.java</a><ahref="/src/main/resources/ehcache.xml">ehcache.xml</a></td>
<ahref="/springboot-petclinic-client/pom.xml">The frontend-maven-plugin plugin downloads/installs Node and NPM locally then runs Bower and Gulp</a>
</td>
</tr>
<tr>
<td>Bower</td>
<td>
<ahref="/springboot-petclinic-client/bower.json">JavaScript libraries are defined by the manifest file bower.json</a>
</td>
</tr>
<tr>
<td>Gulp</td>
<td>
<ahref="/springboot-petclinic-client/gulpfile.js">Tasks automated by Gulp: minify CSS and JS, generate CSS from LESS, copy other static resources</a>
</td>
</tr>
<tr>
<td>AngularJS</td>
<td>
<ahref="/springboot-petclinic-client/scripts/">app.js, controllers and templates</a>
</td>
</tr>
</table>
## Interaction with other open source projects
One of the best parts about working on the Spring Petclinic application is that we have the opportunity to work in direct contact with many Open Source projects. We found some bugs/suggested improvements on various topics such as Spring, Spring Data, Bean Validation and even Eclipse! In many cases, they've been fixed/implemented in just a few days.
The [issue tracker](https://github.com/spring-petclinic/spring-petclinic-microservices/issues) is the preferred channel for bug reports, features requests and submitting pull requests.
For pull requests, editor preferences are available in the [editor config](https://github.com/spring-projects/spring-petclinic/blob/master/.editorconfig) for easy use in common text editors. Read more and download plugins at <http://editorconfig.org>.