Runtime tools : Client engine : Using the client engine service in a React project : Deploying the UDTTReactProject application
  
Deploying the UDTTReactProject application
When you have built the UDTTReactProject application, you can deploy the application into a different Eclipse development environment, for example, an environment that includes tools for developing React applications, or you can deploy the application into your production environment.
Deploying the UDTTReactProject application into a different development environment
Complete the following steps to deploy the UDTTReactProject application into a different development environment:
1 Deploy and start the UDTTServerProject application, see Setting up and running the UDTTServerProject application:
2 Set up the UDTTReactProject application by completing the following steps:
a Import the project into Eclipse.
b Enable CORS by editing the following settings in ../UDTTReactProject/public/unicomsi/btt/clientengine/Configure.js:
i Set CORS to true for cross domain access.
ii Set _BASE to the base url of the UDTTServerProject application.
For example:
CORS : true
var _BASE = "http://<base_URL>:8080/UDTTServerProject/";
Deploying the UDTTReactProject application into a production environment
When you have built the UDTTReactProject application, you can use the following steps to deploy the application to your production environment.
If you are deploying the UDTTReactProject application into a production environment, you have two options:
Integrate UDTTReactProject application with BTTServerProject
1 Copy the build output from the UDTTReactProject application to ../UDTTServerProject/WebContent/.
2 Deploy the UDTTServerProject application to an application server, for example IBM WebSphere Application Server.
3 Launch the application in a browser by using the following URL: http://<host>:<port>/UDTTServerProject/index.html
Use UDTTReactProject application with reverse proxy
1 Deploy the build output to a web server, for example Apache.
2 Deploy the UDTTServerProject application to an application server, for example IBM WebSphere Application Server.
3 Setup a reverse proxy server, for example Nginx.
See:
Go up to
Using the client engine service in a React project