Basic Tutorial: Hello Exchange Plugin web view
We will go over how to develop a web view for the hello-exchange plugin. After developing this web view, we will see a new page that displays some of the exchange information.
Step 1: Initialize the hello-exchange plugin web view.
Run the following commands to initialize the plugin web view:
Step 2: Install the initial plugin.
Run the following commands to build the initial plugin with a default view and install the plugin.
Step 3: disable CORS error on the browser.
The web view JSON file and bundles are served on the localhost port 8080. In order to allow the kit to access them in plugin development mode, we need to disable the CORS issue on the browser. This can be achieved by using a browser extension.
Step 4: Plugin interactive development mode
To start using plugin interactive development mode, we need to run the commands of steps 5 and 6 simultaneously.
Step 5: Create, watch and serve web view bundles and the JSON file.
Run the following command on the plugin starter kit web directory:
Step 6: Start Hollaex kit plugin development mode.
Run the following command on the Hollaex kit web directory:
In order to see the plugin's changes, we need to refresh the page after every change.
Step 7: Update the view.json file.
Step 8: Update the strings.json file.
Step 9: Update Form.js component
See the SmartTarget component for more details about the common props passed using the kit context.
Step 10: Install the plugin.
Uninstall the initial plugin. Then run the following commands to build the plugin again. Then install the plugin json file on the kit.
Last updated