kkaravitis / angular-spring-boot-portlets

Examples for creating secure restfull portlets on liferay 7.2 with angular 8 and Spring Boot 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular 8 with Spring boot 2 portlets on Liferay 7.2

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.

Books catalog example

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.

Download and install the Liferay Portal 7.2 server.

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

(https://releases-cdn.liferay.com/portal/7.2.0-ga1/liferay-ce-portal-tomcat-7.2.0-ga1-20190531153709761.tar.gz).

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

How to build and deploy the modules

  1. Install the npm dependencies to angular app by running
    npm install --prefix wars/books-catalog-portlet

  2. Run npm run build:portlet --prefix wars/books-catalog-portlet

  3. Run mvn install

  4. Run mvn verify

About

Examples for creating secure restfull portlets on liferay 7.2 with angular 8 and Spring Boot 2

License:MIT License


Languages

Language:Java 90.0%Language:TypeScript 6.4%Language:CSS 2.1%Language:HTML 1.0%Language:JavaScript 0.6%