https://github.com/borisskert/spring-static-web-content-example
Little showcase how to host an Angular bundle within a Spring Boot container as static resources
https://github.com/borisskert/spring-static-web-content-example
angular heroku maven-frontend-plugin spring-boot
Last synced: 7 months ago
JSON representation
Little showcase how to host an Angular bundle within a Spring Boot container as static resources
- Host: GitHub
- URL: https://github.com/borisskert/spring-static-web-content-example
- Owner: borisskert
- Created: 2022-06-29T11:17:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-13T11:24:12.000Z (about 3 years ago)
- Last Synced: 2024-05-28T15:50:01.853Z (over 1 year ago)
- Topics: angular, heroku, maven-frontend-plugin, spring-boot
- Language: HTML
- Homepage:
- Size: 1.47 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-static-web-content-example
This project shows an approach how to build an [Angular-App](https://angular.io/) within [Maven](https://maven.apache.org/) and providing the bundle within the [Spring-Boot](https://spring.io/projects/spring-boot) application.
## How I setup this project
* Use [frontend-maven-plugin](https://github.com/eirslett/frontend-maven-plugin) to build an Angular-App within Maven environment
* Use [maven-resources-plugin]() to copy the Angular bundle into backend's target as static resources
* Use [jest](https://jestjs.io/) to run the Angular unit tests
* Use [cypress](https://www.cypress.io/) to run the Angular E2E tests
* Use [Deploy to Heroku](https://github.com/marketplace/actions/deploy-to-heroku) to deploy the Spring-Boot container to [heroku](https://heroku.com/)## Further links
* [heroku instance](https://spring-static-web-content.herokuapp.com/)