Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ethib137/mvc-react-portlet


https://github.com/ethib137/mvc-react-portlet

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        

# MVC React Portlet

A sample Liferay portlet built to highlight best practices.

This is a discussion that is in progress and has yet to be solidified.

![screenshot](./images/MVCReact.png)

## Includes

Passing constants from `portlet.java` to React.

Renders React using the Liferay `` tag.

```

```

Includes the use of [Clay React Components](https://clayui.com/docs/components/index.html) such as:
* [@clayui/autocomplete](https://clayui.com/docs/components/autocomplete.html)
* [@clayui/button](https://clayui.com/docs/components/buttons.html)
* [@clayui/data-provider](https://clayui.com/docs/components/data-provider.html)
* [@clayui/drop-down](https://clayui.com/docs/components/drop-down.html)
* [@clayui/form](https://clayui.com/docs/components/forms/form.html)
* [@clayui/tabs](https://clayui.com/docs/components/tabs.html)

## How to Build and Deploy to Liferay

### Build it
` $ ./gradlew build `
The jar file will be in `build/libs/com.liferay.mvc.react.portlet-1.0.0.jar`.

### Deploy to Liferay
` $ ./gradlew deploy -Pauto.deploy.dir="/path/to/liferay/deploy"`