We recommend creating at least three files for your app: the descriptor (manifest.json), the component (Component.js), and the main view of the app (App.view.xml).
We recommend that you use the manifest.json file to configure the app settings and put all important information needed to run the app in there. Using this approach means you need to write less application code, and you can already access the information before the app is instantiated.
Some attributes in the descriptor are just for information purposes, such as the minimum OpenUI5 version (minUI5version), others help external components (for example the SAP Fiori launchpad (FLP)) to integrate the application correctly, but most of the attributes are actually used to configure specific aspects of the app that are needed frequently.
Models. Examples of models are the configuration of the OData service (default model) and language files (i18n model). All models described in the manifest.json file are automatically instantiated when the app is started.
Libraries and components that are used in the app and have to be loaded during app initialization.
The root view of your application.
Routing configuration that defines the navigation between views.
The App.view.xml file defines the root view of the app. In most cases, it contains an App control or a SplitApp control as a root control.
We also recommend creating a separate view file for each view you want to use in your app.
Your component extends UIComponent. If you are overriding the init function of your component, you have to make sure that you call the init function of UIComponent and initialize the router afterwards.
SAP Fiori launchpad (FLP)
The FLP acts as a component container and instantiates the app based on the information given in the descriptor file. The FLP can contain multiple apps at the same time. Each app can define local settings, such as supported themes or supported devices.
For more information, see the FLP documentation on the SAP Help Portal at http://help.sap.com/nw_platform/ under Application Help. Open the SAP Library for UI Technologies in SAP NetWeaver, choose , and search for Embedding SAPUI5 Apps.
If you want to run your app stand-alone, you need to create an index.html file. Within this file, you create a component container and reference the component.