Test a plugin from localhost
You can test and debug your plugins on your own PC before they are deployed on the MIDATA server.
Here are the steps that are necessary
Steps necessary on your PC
- The plugin must be served from https://localhost:9004/your-internal-plugin-name
- In your browser open your plugin directly (not in the MIDATA portal) and accept any warning about the self signed certificate.
- Chrome may not ask about accepting the self signed certificate, in this case you have to navigate to chrome://flags/#allow-insecure-localhost and set the highlighted flag to
enabled
.
- Chrome may not ask about accepting the self signed certificate, in this case you have to navigate to chrome://flags/#allow-insecure-localhost and set the highlighted flag to
Steps necessary on the portal
- As Developer use the “Test Users” function to register a user with the required role for your plugin.
- Select some “Tags” in your plugins configuration so that it can be found inside the MIDATA portal. As long as your plugin is not officially published non test users will still not be able to find/select it in the portal. However the test users that have been created by you will be able to use the plugin.
- Log in as the test user and select the plugin.
- The plugin will be automatically be served from your computer.