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:
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 BTTServerProject application.
For example:
CORS : true
var _BASE = "http:// <base_URL> :8080/BTTServerProject/";
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 ../BTTServerProject/WebContent/ .
2 Deploy the BTTServerProject 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> /BTTServerProject/index.html
Use UDTTReactProject application with reverse proxy
1 Deploy the build output to a web server, for example Apache.
2 Deploy the BTTServerProject application to an application server, for example IBM WebSphere Application Server.
3 Setup a reverse proxy server, for example Nginx.
See:
This site works best with JavaScript enabled