AngularJS Portlet Demo v3

A Liferay portlet that just list all users and shows how AngularJS and Spring Portlet MVC can be used to create single page HTML5 portlets.

The demonstrator consists of two parts:

  1. A Spring Portlet MVC backend that handles all AJAX requests as resource requests. It leverages the thymeleaf HTML5 template engine to pass the resource URL and other parameters as JavaScript variables to the frontend.
  2. An AngularJS frontend that can also be run standalone with node.js, which can greatly accelerate the development.

Build

Prerequisites

Create the WAR file

Just run mvn package on the command line.

Run

On a Liferay 6.2 Portal

Drop the generated liferay-angularjs-portlet-*.war file in thetarget directory into the {liferay-home}/deploy folder. Alternatively execute on the command line: mvn liferay:deploy -D\<base_path_of_your_lifery_installation>

Standalone

Run npm install and grunt server in the root directory of the project. The webapp will be available on localhost:9000.

Notes

Screenshots

Liferay 6.2

Portlet

Standalone

Portlet