Runtime tools : Client engine : Universal Application Guideline and Samples : Sample Applications : UDTTReactProject : UDTTReactProject build and deployment
  
UDTTReactProject build and deployment
Additional Notes
1 We will use HTTPS for security reasons.
Please enable the HTTPS access of the App Server accordingly.
For simplicity, we will deploy the UDTTReactProject at
UDTTServerProject/src/main/webapp/app
You can then access it in browser
https://<hostname:port>/UDTTServerProject/app/index.html
UDTTReactProject build
Set up npm on your system.
Read more details at
https://nodejs.org/en
1 Configure the UDTT ReactProject at
UDTTReactProject/public/unicomsi/btt/clientengine/Configure.js
a Set CORS to true for cross domain access
b Set _BASE to the URL of the UDTTServerProject application.
For example:
CORS : true
var _BASE = "/UDTTServerProject/";
2 Install the dependencies following these commands:
$ cd UDTTReactProject/
$ npm install
3 Packaging UDTTReactProject following these commands:
$ cd UDTTReactProject/
$
npm run build
4 Copy the build folder to UDTTServerProject
$ cp UDTTReactProject/build/* UDTTServerProject/src/main/webapp/app/
5 Deploy the UDTTServerProject to the App Server and start it.
6 Check the UDTTReactProject in a browser
https://<hostname:port>/UDTTServerProject/app/index.html
Go up to
Universal Application Guideline and Samples