Skip to content
No description or website provided.
Java HTML CSS
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src Context.xml is useless
.gitignore Update README
Procfile Set up of the java buildpack
README.md Update branding
build.xml Set up Ant
manifest.yml
maven-build.properties Set up Ant
maven-build.xml Set up Ant
petclinic.iml Import the project
pom.xml Set up of the java buildpack
readme.txt Import the project

README.md

Pet clinic Sample

This is a Java sample using the Spring framework and a MySQL service.

http://static.springsource.org/docs/petclinic.html

Deploying the Application to HPE Helion Stackato

To deploy to HPE Helion Stackato:

mvn clean package -Dmaven.test.skip=true
stackato push -n

You can view the application at the 'Application Deployed URL'.

Running the Application locally

This application uses the DATABASE_USE variable to get the database informations. To run the application locally, set the DATABASE_URL variable in your local environment to point to your local mysql database:

export DATABASE_URL=mysql://user:password@localhost/myapp

To build the application, make sure you have Maven installed. Then, cd into the root directory and execute:

mvn clean package

If you do not want to set up a local database, you can skip the test and buid the application with:

mvn clean package -Dmaven.test.skip=true

That will create the petclinic.war file in the 'target' directory.

Something went wrong with that request. Please try again.