Spring boot + Angular 2 + Angular 2 Material packaged app
One of the challenges of working with Angular 2 is to take care of things like CORS, Security, API access. This project bundles an Angular 2 app inside SpringBoot.Now you can leverage the Spring Boot eco-system to create a UI microservice , add discovery , Zuul API proxy , security etc.
The ui folder is based on the exact structure provided by @AngularClass in the angular2-webpack-starter project. So this give the ability for the UI dev project to continue as-is , but for production deployment it will be packaged as a Spring Boot UI microservice
-
Install mvn , npm , java 1.8
-
Install the dependencies given in the AngularClass project https://github.com/AngularClass/angular2-webpack-starter
-
Build the app
mvn clean install
- Run the app
java -jar target\ui-service-0.0.1-SNAPSHOT.jar