https://github.com/azure-samples/spring-petclinic-rest-angular-containers
Deploy Spring REST API to Azure
https://github.com/azure-samples/spring-petclinic-rest-angular-containers
angular angularjs appinsights azure azurecli containers java kubernetes paketo-buildpack rest-api spring spring-boot
Last synced: about 2 months ago
JSON representation
Deploy Spring REST API to Azure
- Host: GitHub
- URL: https://github.com/azure-samples/spring-petclinic-rest-angular-containers
- Owner: Azure-Samples
- License: mit
- Created: 2025-02-06T22:12:24.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-12T20:25:08.000Z (4 months ago)
- Last Synced: 2025-04-13T11:55:18.536Z (about 2 months ago)
- Topics: angular, angularjs, appinsights, azure, azurecli, containers, java, kubernetes, paketo-buildpack, rest-api, spring, spring-boot
- Homepage: https://aka.ms/spring-rest-api
- Size: 684 KB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# README
This project illustrates how to deploy the Spring Pet Clinic Angular application
and Spring Pet Clinic Spring Boot REST application to the Azure container runtime
of your choice.## Getting Started
### Prerequisites
1. WSL2 / Linux / macOS / Cloud Shell / GitHub Codespaces
1. Java 21
1. Maven### Installation
To get started, we need to apply the necessary patches to the Spring Pet Clinic
submodules by patching their sources so you can easily deploy them to the container
runtime of your choice. To do so, use the command line below:```shell
git apply containers.patch
```The `containers.patch` file contains the necessary changes to configure the Spring Pet Clinic Angular application and Spring Pet Clinic Spring Boot REST application for deployment to various Azure container runtimes. This includes:
#### Angular App - Configuration Changes
- **.gitignore**: Updates to exclude build directories such as `node/` and `target/`.
- **angular.json**: Modifications to add new build configurations for local and ACA environments.
- **pom.xml**: Addition of a Maven POM file in the Angular project to support Maven builds and Docker image creation using Paketo buildpacks.
- **environment.aca.ts**: New environment configuration file for ACA deployments.
- **environment.local.ts**: New environment configuration file for local deployments.#### Spring Boot REST - Configuration Changes
- **pom.xml**: Updates to include a Docker build profile using the `exec-maven-plugin` for building Docker images with Paketo buildpacks.
- **type**: Addition of a Paketo bindings type file that enables Azure Application Insights.### Container runtime
Pick your desired container runtime below:
1. [Azure Container Apps](ACA.md)