Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ethib137/mvc-react-portlet
https://github.com/ethib137/mvc-react-portlet
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ethib137/mvc-react-portlet
- Owner: ethib137
- Created: 2020-02-09T12:03:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T17:34:13.000Z (almost 2 years ago)
- Last Synced: 2023-03-23T03:42:00.223Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 728 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
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"`