An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Angular Spring Heroes

[![license](https://img.shields.io/github/license/porscheinformatik/angular-spring-heroes.svg)](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"