Skip to content

Priyanshu-git/pet-clinic

Repository files navigation

<ORG_NAME>
If the above icon shows "PASSED" then the current code has been successfully build on Circle CI.

pet-clinic

This project is a mimic of the Pet Clinic application built by the Spring community using Maven. It is built on Spring MVC and uses technologies like Spring JPA, Hibernate, Thymeleaf and Project Lombok. Test-driven approach has been followed using JUnit 5, Mockito and Circle CI for Continuous build integrations. The application is deployed on localhost:8080 using using Apache Tomcat Server.

Prerequisites to run the app

The following items should be installed in your system:

Running App locally

You can build a jar file and run it from the command line:

git clone https://github.com/Priyanshu-git/pet-clinic.git
cd pet-clinic
mvnw package
cd pet-clinic-web/target
java -jar pet-clinic-web-0.0.3-SNAPSHOT

You can then access the Application here: http://localhost:8080/

Working with pet-clinic in your IDE

Steps:

  1. On the command line

    git clone https://github.com/Priyanshu-git/pet-clinic.git
    
  2. Inside Eclipse or STS

    File -> Import -> Maven -> Existing Maven project
    

    Then either build on the command line ./mvnw generate-resources or using the Eclipse launcher (right click on project and Run As -> Maven install) to generate the css. Run the application main method by right clicking on it and choosing Run As -> Java Application.

  3. Inside IntelliJ IDEA In the main menu, choose File -> Open and select the pet-clinic pom.xml. Click on the Open button.

    CSS files are generated from the Maven build. You can either build them on the command line ./mvnw generate-resources or right click on the spring-pet-clinic project then Maven -> Generates sources and Update Folders.

    A run configuration named pet-clinic Application should have been created for you if you're using a recent Ultimate version. Otherwise, run the application by right clicking on the pet-clinic Application main class and choosing Run 'pet-clinic Application'.

  4. Navigate to pet-clinic

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

About

A sample Spring based application

Resources

Stars

Watchers

Forks

Packages

No packages published