This documentation is for WSO2 ES version 2.0.0. View documentation for the latest release.
Creating the Shell of an App Extension - Enterprise Store 2.0.0 - WSO2 Documentation
||
Skip to end of metadata
Go to start of metadata

Follow the instructions below to create the shell of an app extension, which is the folder structure of an app extension:

For more information on app extensions, see Introduction to App Extensions.

  1. Create an app extension folder structure in the app directory. For more information, see App Extension Components. The app extension directories for the Publisher and Store are as follows:

    ES ComponentDirectory
    Publisher<ES_HOME>/repository/deployment/server/jaggeryapps/publisher/extensions/app/<APP_EXTENSION_NAME>
    Store<ES_HOME>/repository/deployment/server/jaggeryapps/store/extensions/app/<APP_EXTENSION_NAME>

    The app extension name defined by the <APP_EXTENSION_NAME> folder can be any name based on your preference.

    An app extension directory contains the following elements:

    • pages directory (Optional).

    • An apis directory (Optional).

    • themes directory with one or more themes.The theme directory is only required if a page controller uses the ES rendering framework.

    • An app.js file.


    Example:
    The following screenshot explains the general folder structure of an app extension, where the name of the app extension is servicex_storefront.
  2. Restart the ES server, so that ES evaluates the changes in the app.js file.
  3. Customize the newly created shell of the app extension. For more information, see Working with App Extensions.
  • No labels