Developing multiple Eitri-apps
Allows the developer to simultaneously run more than one Eitri-App in their respective workspaces. This is useful for developing and testing integration between different Eitri-Apps.
Note
Prerequisites:
- CLI version 1.17.0 or higher.
Usage
-
Structure your project with the following organization:
-
Create an
app-config.yaml
file at the root of the project with the following structure:- application-id: Application ID For more information, see the section How to obtain the application ID.;
- eitri-apps: List of Eitri-Apps to be started;
- alias: Eitri-App alias;
- path: Eitri-App path;
- workspace: Eitri-App workspace;
- focus: Defines which the Eitri-App will be opened in the foreground;
- shared: Defines if the Eitri-App is shared between other Eitri-Apps.
- bottom-tab-view-simulation: Information to the Eitri Machine about the tabs that will be opened when the App is started.
application-id: 'bd9b96af-ac33-492e-876c-6755b3aefaef' eitri-apps: - alias: berserk path: "./eitriapp-berserk" workspace: DEFAULT focus: true - alias: "components-logic" path: "./components-logic" workspace: component shared: true - alias: "shared-logic" path: "./shared-logic" workspace: logic shared: true bottom-tab-view-simulation: eitri-apps: - slug: "berserk" title: "Berserk" - slug: "components-logic" title: "Components Logic" - slug: "shared-logic" title: "Shared Logic"
2.1 application-id: Application ID (obtained via the Console). To get the application ID, go to the Console, click on the desired application, and copy the Application ID from the Application ID field.
-
Run the command
eitri app start
at the root of the project. -
The command will start the Eitri-Apps configured in the
app-config.yaml
file, and the Eitri-App with thefocus: true
attribute will open in the foreground of the application. -
Example of running the command: