/monolithic-petclinic

Small monolith application to extract a Microservice.

Primary LanguageJavaApache License 2.0Apache-2.0

Breaking The Monolith

The purpose of this fork is to be a monolithic mess. You can use it to break and extract microservices. As the PetClinic is continuously deployed you need to make small changes that preserve the behaviour. The tasks involve refactoring, TDD, branch by abstraction and introducing an event bus.

Petclinic is a Spring Boot application built using Maven.

Find an Overview in this PDF

Working with the Monolithic Petclinic

The following items should be installed in your system:

  • Java 8 or newer.
  • git
  1. Clone the repository

    git clone https://github.com/gregorriegler/monolithic-petclinic.git
    
  2. Import into Eclipse or STS

    File -> Import -> Maven -> Existing Maven project
    
  3. Import into IntelliJ IDEA

    In the main menu, choose File -> Open and select the Petclinic pom.xml. Click on the Open button.

  4. Run it on the CLI

    You can run it with the spring boot maven plugin like this:

    cd monolith
    ../mvnw spring-boot:run
    
  5. Navigate to the Petclinic

    Visit http://localhost:8080 in your browser.

Database configuration

Petclinic uses an in-memory database (HSQLDB) which gets populated at startup with data.

License

License