tommmyy / react-union-v1-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project structure

  • ./example - Liferay workspace
  • ./example/modules/example-portlet/ - Spring MVC portlet
  • ./react-union-boilerplate-liferay/ - FE project
  • ./react-union-boilerplate-liferay/packages/app-* - App shells
  • ./react-union-boilerplate-liferay/packages/widget-* - Widgets

Liferay workspace

Install blade-cli

See blade docs.

Installation:

curl -L https://raw.githubusercontent.com/liferay/liferay-blade-cli/master/cli/installers/local | sh

Create liferay-workspace

blade init -v 7.4 example

Create MVC porlet

Inside workspace folder

blade create -v 7.4 -t mvc-portlet -p eu.lundegaard.example -c ExamplePortlet example-portlet
Successfully created project example-portlet in [WORKSPACE_DIR]/modules

Building a module

./gradlew modules:example-portlet:build

Or

blade gw modules:example-portlet:build

Or

blade gw modules:example-portlet:jar

Jar can be found at: modules/build/example-portlet/libs

Running Liferay locally

  1. Run docker container:
docker compose up
  1. Go to http://localhost:8080/

  2. Sign in

test@liferay.com
test

and change password.


Generation of official Liferay JS portlet

yarn global add yo generator-liferay-js
yo liferay-js

References

About


Languages

Language:CSS 64.5%Language:EJS 15.1%Language:Java 12.5%Language:JavaScript 7.7%Language:SCSS 0.1%