Skip to content

Enterprise Application (EA) ​

EA is Motanamy's platform for multi-user business systems. It runs in the browser and is served by the EA server. EA plugins can add pages, dashboard widgets, settings screens, roles, translations and an optional backend.

What a plugin can do ​

  • Add dashboard widgets and pages to the main navigation
  • Add settings pages under Settings
  • Define roles that administrators grant to users
  • Register Arabic and English translations
  • Run backend routes in main.js with Express or NestJS

How it works ​

setting.json  →  loads script.js  →  registers widgets, pages, roles, translations

A minimal script.js:

js
plugins["my-plugin"] = function () {
    this.addLanguage("en", "myPlugin", { name: "My Plugin" });
    this.addLanguage("ar", "myPlugin", { name: "الإضافة الخاصة بي" });

    this.addToSetting({
        label: "My Plugin",
        key: "myPlugin.name",
        icon: "mdi mdi-puzzle",
        to: "/app/setting/my-plugin"
    });

    this.addPage({
        name: "/[my-plugin]setting.vue",
        path: "/app/setting/my-plugin",
        file: ["my-plugin", "setting.vue"]
    }, "setting");
}

Get started ​

Follow the Quick Start with --type EA:

bash
mot create my-plugin --type EA

Next steps ​