Examples for creating secure jsr286 or jsr362 portlets on liferay 7.2 with angular 8 and Spring boot 2. Every portlet is in wars folder and in modules folder there are the services apis produced by service builder.
A basic crud application where only authenticated users of portal can view the stored books on database and can add, update or delete a book of them.
This portlet leverages the power of angular custom elements and the powerful capabilities of Spring Boot with respect on liferay service builder as regards the persistence layer.
After you have cloned the project, open a terminal to the angular-spring-boot-portlets folder and run
mvn bundle-support:init
The above command downloads the Liferay Portal specified in pom.xml version (7.2) from the specified repository
Now you have a complete development environment to play with this project.
For more information about setting up a liferay development environment refer to the following links
https://portal.liferay.dev/docs/7-0/reference/-/knowledge_base/r/bundle-support-plugin
https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/tooling
-
Install the npm dependencies to angular app by running
npm install --prefix wars/books-catalog-portlet
-
Run
npm run build:portlet --prefix wars/books-catalog-portlet
-
Run
mvn install
-
Run
mvn verify