Skip to content

Plugins

Plugins are additional components developed as separate packages to enhance our product. This separation helps keep the main codebase clean. Each plugin should reside in its own folder under the Website/ui/src/plugins directory. Additionally, each plugin should have its own backend code, which will be explained in the backend section.

sh
Website/ui
├── src
   ├── plugins
   ├── newPlugin

In the backend section, you'll find instructions on how to create a plugin.

Install Plugins

We have a custom plugin creator command that generates a template. Use the following command to create a new plugin:

bash
docker exec -it laravel bash
cd mpmanager
php artisan micropowermanager:new-package {package-name}

This command creates a plugin template in the Website/htdocs/mpmanager/packages/inensus folder. Upon creation, you can proceed with plugin development. You can check other plugins for reference. Additionally, this command will create UI folders for the newly created plugin. Move the created UI folder to the Website/ui/src/plugins folder.

Built with VitePress ❤️.