| 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:
-
Use the following command to clone the Pet Clinic application from GitHub:
git clone https://github.com/Azure-Samples/spring-petclinic-microservices.git
-
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.
-
Open a new Bash window and then use the following command to start Config Server:
./mvnw spring-boot:run -pl spring-petclinic-config-server
-
Open a new Bash window and then use the following command to start Discovery Server:
./mvnw spring-boot:run -pl spring-petclinic-discovery-server
-
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 -
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
-
After the script completes successfully, go to
http://localhost:8080in your browser to access the PetClinic application.