Prerequisite Have a basic understanding of javascript
Creating your first plugin
Find where your RocketCore folder (and not where the bootstrapper is located) Then open the data/Plugins folder and create a new folder with the name of your plugin. Next add aindex.js
file inside of your newly created folder.
Inside the index.js
file, you are expected to export a function named initialize
which will be called by RocketCore when the plugin is loaded.
Here is an example of a simple plugin:
RocketCore/data/Plugins/ExamplePlugin/index.js
dataFolderPath
is the path to the folder where the “RocketCore” folder is located. NOT WHERE THE BOOTSTRAPPER IS LOCATED
To learn more about the Plugin API, check out the Plugin API Documentation