This is for Liferay DXP 7.3!!!
Liferay Resort Application using React JS and Liferay DXP
To get the application working you can do the following:
- Create a
Service Account
role - Apply
View Permissions
for Web Content and Blogs for this role - Create a
Service Acount
user and give it theService Account
role - Import all the contents like banner, resort rooms, blogs from the repo ==> tree/master/Content%20LAR
- Add
Portal Cross-Origin Resource Sharing (CORS)
entry
- Update the .env file to your Liferay DXP instance
- REACT_APP_Authorization contains the base64 encoded username:password
- The username and password are combined with a single colon (:). This means that the username itself cannot contain a colon
- The resulting string is encoded into an octet sequence. The character set to use for this encoding is by default unspecified, as long as it is compatible with US-ASCII, but the server may suggest use of UTF-8 by sending the charset parameter.
- The resulting string is encoded using a variant of Base64.
- PRO TIP: You can use postman or curl to see the encoded Authorization header
- PRO TIP: You can set this also as environment variable REACT_APP_Authorization=Basic c2VydmljZV9hY2NvdW50Omx3cG53ZVlBN
- Push the updates to your github repo
- You can use netlify.app with CI/CD capabilities to run the app online
- Make sure to configure netlify with the following build instructions
Done!
In case content or blogs are not showing checkout permissions. For blogs you might need a fix described here: https://issues.liferay.com/browse/PTR-1538