Testing existing module customizations in Order Hub
After customizing an existing module, you can test the changes by configuring Order Hub to connect to your toolkit environment.
- If you have a traditional on-premises Order Hub installation (not a next-generation Order Hub), edit the
<html_directory>/orderhub/shell-ui/assets/app-bootstrap-config.jsonfile and add the following as the second line in the file:"devMode" : true,Note: This should only be done in the local development environment. Do not deploy the app-bootstrap-config.json file with"devMode" : trueto production systems. - Log in to Order Hub.
- In the header, click Customize.
- Set the module that you customized to ON.
- Save your changes.
- If the local server is not running, start the
server.
yarn start-appNote: You see the following message.**Angular Live Development Server is listening on localhost:<port>, open your browser on https://localhost:<port>/<module>/<route>**
You can ignore the message. - Open a new tab and go to the following URL while replacing the <port> with the applicable
port number for the module that you are customizing. For example, for the
buc-app-order module, the default port number is
8300.
Accept the certificate so that the customized module can load in Order Hub.https://localhost:<port> - Refresh the browser tab that is logged in to Order Hub. The menu item that you
enabled for customization should now show in parenthesis (DEV mode). These menu items will now
render from your local server instead of from Order Hub.
