/janilla-petclinic

A sample Janilla-based application

Primary LanguageJavaApache License 2.0Apache-2.0

Janilla PetClinic Sample Application

What's this?

This is a Janilla version of the Spring PetClinic official sample application by Spring.

The original application lives at https://github.com/spring-projects/spring-petclinic.

Understanding the PetClinic application

A database-oriented application designed to display and manage information related to pets and veterinarians in a pet clinic.

Run PetClinic locally

Janilla PetClinic is a Janilla application built using Maven. You can run it from Maven directly (it should work just as well with Java 21 or newer):

git clone https://github.com/diego-schivo/janilla-petclinic.git
cd janilla-petclinic
mvn compile exec:java

You can then access the PetClinic at http://localhost:8080/.

In case you find a bug/suggested improvement for Janilla PetClinic

Our issue tracker is available here.

Database configuration

In its default configuration, Janilla PetClinic stores its data in a file under the user home directory, which gets populated at startup with data.

You can change the file location by editing configuration.properties in the source package.

Working with Janilla PetClinic in Eclipse IDE

Step-by-step Video Tutorial available on our YouTube Channel.

Prerequisites

The following items should be installed in your system:

In order to install them all:

  1. Download the Eclipse Installer
  2. Install the package for Enterprise Java and Web Developers with JRE 21

Steps

  1. Launch Eclipse and choose Import projects from Git (with smart import)
  2. Select GitHub as the repository source, then search for janilla-petclinic fork:true and complete the wizard
  3. Select the project (janilla-petclinic) and launch Debug as Java Application
  4. Open a browser and navigate to http://localhost:8080/

Looking for something in particular?

Item Files
The Main Class PetClinicApplication
Configuration File configuration.properties

Contributing

The issue tracker is the preferred channel for bug reports, feature requests and submitting pull requests.

License

The Janilla PetClinic sample application is released under version 2.0 of the Apache License.