https://github.com/porscheinformatik/angular-spring-heroes
Demo application for Angular and Spring Boot
https://github.com/porscheinformatik/angular-spring-heroes
angular blueprint spring spring-boot typescript
Last synced: 3 months ago
JSON representation
Demo application for Angular and Spring Boot
- Host: GitHub
- URL: https://github.com/porscheinformatik/angular-spring-heroes
- Owner: porscheinformatik
- License: mit
- Created: 2017-07-03T12:00:59.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-12-19T17:19:24.000Z (6 months ago)
- Last Synced: 2024-12-22T20:39:08.979Z (6 months ago)
- Topics: angular, blueprint, spring, spring-boot, typescript
- Language: TypeScript
- Homepage:
- Size: 6.4 MB
- Stars: 12
- Watchers: 4
- Forks: 5
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular Spring Heroes
[](LICENSE)
This projects shows the integration of Angular with a Spring Boot backend.
## Build and Run
Run `mvn clean package` to build the project. The final application will be located under `heroes-webapp/target/heroes-webapp.jar`.
The application can be run via `java -jar heroes-webapp.jar`.## Frontend
The frontend is written in Angular and built with [Angular CLI](https://github.com/angular/angular-cli).
### Running Frontend Build for Development
Run `npm run dev` in heroes-frontend for continuously building the app. Also run the backend to access the webapp (see below).
### Code Scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|module`.
### Running Frontend Unit Tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Backend
The backend is written in Spring Boot. The whole backend code is located under heroes-backend.
### Running Backend Server for Development
Run the main class `heroes.HeroesApplication` from your favorite IDE - please include the Spring Boot profile "dev". The application will be available via [`http://localhost:8080/`](http://localhost:8080/).
## Deployment to Kubernetes/OpenShift
The application can be deployed to [Kubernetes](https://kubernetes.io/) (or [OpenShift](https://www.openshift.org/)) via [Helm](https://helm.sh/) and [Knative](https://knative.dev/).
Setup your cluster and install Knative Serving to your cluster (see [Installing Knative](https://knative.dev/docs/install/)).
Then install the application using Helm with:
helm install deploy/knative-application --set service.image.tag=${IMAGE_TAG} --set "customDomains[0].url=$APP_HOST"