This clickstart is a lightweight customization of the Grails Petclinic Sample Application maintained byt the Grails Community.
Press the button to build, test and deploy this instantly:
Instructions for a manual setup with the CloudBees SDK.
bees app:create -a community/grails-petclinic-clickstart jvmPermSize=128
Please note the extra jvmPermSize
for Grails framework.
bees db:create community/grails-petclinic-clickstart
bees app:bind -a community/grails-petclinic-clickstart -db community/grails-petclinic-clickstart -as grails_petclinic
This binding injects in the container:
- System properties
DATABASE_URL_GRAILS_PETCLINIC
starting withmysql:
(e.g. "mysql://ec2-x-y-z-w.compute-1.amazonaws.com:3306/grails-petclinic-clickstart")DATABASE_USERNAME_GRAILS_PETCLINIC
DATABASE_PASSWORD_GRAILS_PETCLINIC
- a JNDI datasource
java:comp/env/jdbc/grails_petclinic
More details on RUN@cloud >> Binding services (resources) to applications
List of changes between the official Grails PetClinic application and is adaptation:
- Addition of MySQL JDBC Driver dependency (see BuildConfig.groovy)
- Declaration of MySQL DataSources
- JNDI DataSource for "production" environment (see DataSource.groovy)
- Embedded Grails Data Source using configuration injected by System Properties for a "embeddedDatabase" environment (see DataSource.groovy)
- Add info jsps.
All changes are visible here.
ORIGINAL README.md OF THE GRAIL PETCLINIC APPLICATION BELOW
This is the standard introductory sample application for Grails. To get started with it, simply clone the repository and then from within your local copy run:
./grailsw run-app
on Unix-like systems, or
grailsw run-app
on Windows via the command prompt. Once the server has started up, you can copy the URL and paste it in a browser.
Follow the tutorial link to learn about Grails or click on the View Source for Controller/View links to see the underlying code for whatever page you are currently on.