A Mirror of Spring's PetClinic
Find a file
2017-10-23 18:02:47 -07:00
.mvn/wrapper added missing .mvn folder needed for maven wrapper 2016-02-19 14:49:30 -06:00
src A script to drop all the tables in reverse order 2017-10-23 18:02:47 -07:00
.editorconfig #96 change EditorConfig in order to impact other files than Java and XML (i.e.. jsp and html pages) 2015-10-16 18:21:12 +02:00
.gitignore Add ignores 2016-11-22 11:12:07 +00:00
.springBeans using latest versions of hibernate, spring-data, joda... 2014-08-08 13:55:01 +08:00
.travis.yml Fix #78 Migrate to Bootstrap 3.x 2016-04-04 08:13:51 +02:00
docker-compose.yml Make mysql configuration more first class 2016-12-05 21:50:29 +00:00
mvnw Add Maven Wrapper with mvn -N io.takari:maven:wrapper 2016-01-31 12:41:36 +01:00
mvnw.cmd Add Maven Wrapper with mvn -N io.takari:maven:wrapper 2016-01-31 12:41:36 +01:00
pom.xml Fixed pom to current snapshot and a typo pointing to hibernate 2017-10-23 18:01:10 -07:00
readme.md Update readme.md 2017-07-05 14:21:48 -05:00
sonar-project.properties test methods:used should/shouldNot 2015-01-16 09:08:22 +08:00

Splice Machine Spring PetClinic Sample Application Build Status

A fork of spring-projects PetClinic

Understanding the Spring Petclinic application with a few diagrams

See the presentation here

Splice configuration

For instructions on how to set up and start your Splice Cluster, see our Spliceengine readme

Running petclinic locally

	git clone https://github.com/splicemachine/spring-petclinic.git
	cd spring-petclinic
	./mvnw spring-boot:run

You can then access petclinic here: http://localhost:8080/

petclinic-screenshot

In case you find a bug/suggested improvement for Spring Petclinic

Our issue tracker is available here: https://github.com/splicemachine/spring-petclinic/issues

Database configuration

In its default configuration, Petclinic uses an in-memory database (HSQLDB) which gets populated at startup with data.

You could start a Splice Machine database running locally by editing application.properties:

database=splicemachine
spring.datasource.schema=classpath*:db/${database}/schema.sql
spring.datasource.data=classpath*:db/${database}/data.sql


spring.datasource.url=jdbc:splice://localhost:1527/splicedb;user=splice;password=admin
spring.datasource.username=splice
spring.datasource.password=admin
spring.datasource.driver-class-name=com.splicemachine.db.jdbc.ClientDriver
spring.jpa.database-platform=com.splicemachine.SpliceMachineDialect

See our tutorials to connect to our ODBC driver to allow Splice Machine to connect any other database or business tools that needs access to your database

Working with Petclinic in Eclipse/STS

prerequisites

The following items should be installed in your system:

Note: when m2e is available, there is an m2 icon in Help -> About dialog. If m2e is not there, just follow the install process here: http://eclipse.org/m2e/download/

Steps:

  1. In the command line
git clone https://github.com/spring-projects/spring-petclinic.git
  1. Inside Eclipse
File -> Import -> Maven -> Existing Maven project