This projects shows the integration of Angular with a Spring Boot backend.
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
.
The frontend is written in Angular and built with Angular CLI.
Run npm run dev
in heroes-frontend for continuously building the app. Also run the backend to access the webapp (see below).
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|module
.
Run ng test
to execute the unit tests via Karma.
The backend is written in Spring Boot. The whole backend code is located under heroes-backend.
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/
.
The application can be deployed to Kubernetes (or OpenShift) via Helm and Knative.
Setup your cluster and install Knative Serving to your cluster (see Installing Knative).
Then install the application using Helm with:
helm install deploy/knative-application --set service.image.tag=${IMAGE_TAG} --set "customDomains[0].url=$APP_HOST"