Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 2.13 KB

File metadata and controls

62 lines (44 loc) · 2.13 KB
author KarlErickson
ms.author v-shilichen
ms.service azure-spring-apps
ms.topic include
ms.date 08/19/2025
ms.update-cycle 1095-days

Use the following steps on your local machine when you want to verify the application before deploying it to the cloud:

  1. Use the following command to clone the Pet Clinic application from GitHub:

    git clone https://github.com/Azure-Samples/spring-petclinic-microservices.git
  2. Navigate to the project root directory and then use the following command to build the project:

    ./mvnw clean package -DskipTests

Use the following steps if you want to run the application locally. Otherwise, you can skip these steps.

  1. Open a new Bash window and then use the following command to start Config Server:

    ./mvnw spring-boot:run -pl spring-petclinic-config-server
  2. Open a new Bash window and then use the following command to start Discovery Server:

    ./mvnw spring-boot:run -pl spring-petclinic-discovery-server
  3. For the Customers, Vets, Visits, and Spring Cloud Gateway services, open a new Bash window and use the following commands to start the services:

    ./mvnw spring-boot:run -pl spring-petclinic-customers-service
    ./mvnw spring-boot:run -pl spring-petclinic-vets-service
    ./mvnw spring-boot:run -pl spring-petclinic-visits-service
    ./mvnw spring-boot:run -Dspring-boot.run.profiles=default,development \
        -pl spring-petclinic-api-gateway
  4. Open a new Bash window and navigate to the project spring-petclinic-frontend directory. Use the following commands to install dependencies and run the frontend application:

    npm install
    npm run start
  5. After the script completes successfully, go to http://localhost:8080 in your browser to access the PetClinic application.