Any part of an app (client) you are building can be exported as a plug-in. A plug-in can then be imported into any other app along with out-of-the-box Appery.io plug-ins.
Think of this as creating reusable app components. For example, you can create an app with one page and one service which sends an email. You can export it as a plug-in and then add this functionality (one page, one service) into another app.
To create a private plug-in that you can later use in your projects, simply build any app and export it (or its parts) as a plug-in.
Follow the steps below to export an app as a private plug-in.
- Build an app that you want to export as a plug-in. You don’t need to build a complete working app, you can create pages or services and export them as a plug-in.
- To export this app as a plug-in click Export in the upper dashboard and select Appery.io plugin:
- In the new page that opens, Export plugin, perform the following steps (some are optional):
- Upload the plug-in’s icon image.
- Set the plug-in’s name.
- Set the plug-in’s description.
- Provide an API home page and documentation site.
- Set the plug-in version.
- Pick one or more categories.
- Set the API vendor:
- By default, the entire project is exported as a plug-in.
If you need to export just parts of the app into the plug-in (only pages or specific services), uncheck the Export entire project checkbox. You’ll receive an option to select which app file you’d like to export into the plug-in:
- Click Export to finish creating your private plug-in:
- When ready, you will see the message Plugin "MyQuizAppPlug-in" has been created successfully. and the plug-in should appear on the plug-ins list in the left view of the Apps tab:
There are three ways to update a plug-in:
- Create a new plug-in.
- Open the plug-in and edit it.
- Replace the plug-in with a new version.
When creating a new plug-in, you lose the Import counter value (the new plug-in doesn’t inherit this value from the old one). If you open and edit the plug-in, someone can import it when you haven’t finished working on it – it is unsafe. The safest way is to replace the plug-in with a new version.
To replace the plug-in with a new version:
- Open the project your plug-in was created from, or recreate a project with the same features.
- Make changes in the project and check that it works correctly (debug).
- Select Export > Appery.io plugin.
- In the Export plugin tab, check the Replace plugin box.
- In the pop-up, check the plug-in you are going to replace and click Import selected plugins.
- Change the version of the plugin. Other properties can also be updated. Make sure the additional options’ boxes are checked correctly.
- Click Replace.
Your plug-in will be replaced instantly, and the import counter will be kept.
Any project can also be published as a project template. To export your project as a project template, click the EXPORT button in the app Toolbar and select the Appery.io plugin option:
Then check the Export entire project and Add this plugin as project template options and confirm exporting it:
To export it as a project template, Export entire project must be selected.
In a moment, you will see the message: Plugin "MyQuizAppTemplate" has been created successfully.
Now, you can check your private plug-ins list under the Apps > Plugins section:
There, you can find information about the plug-ins or templates created by you (creator e-mail, publicity, import counter value, and so on) and:
- Open the plug-in to edit it.
- Rename the plug-in.
- Delete it.
- Backup it.
To create a new app based on your custom project template, click Create new app from the Apps tab, go to the My templates tab, select the project template, name your new project, and click Create:
Later, in the app Project view, you can go to the CREATE NEW > From Plugin. This will open a new window with your created project template listed there as well (with Project template: yes) and that can be imported into your app.
Note, that in this case, it is listed under three categories since we assigned it to all three when creating this plug-in (check this example for more details):
To finish, confirm import by clicking the Import selected plugins button.
To quickly find the needed plug-in, start typing its name or group all plug-ins by the vendor. By default, they are grouped by Category.
You can check now how your Apps list looks like with private plug-ins and your new app created from your custom template:
Updated about 1 month ago