To implement offline mode in the generation process used blueprint flexberry-application-offline. This blueprint runs the generation needed for offline-mode services, adapters and serializers based on the metadata. These components are created in addition to the main.
To the offline services include
the <ul> the <li>offline-globals - implements the activation of the offline mode and obtain schema offline database данных;</li> the <li>store - in scheme which is set to the offline database obtained from offline-globals.</li> </ul>
Adapters and serializers are generated for each model obtained from the metadata.
start Command generate:
ember generate flexberry-application-offline app --enable-offline --metadata-dir="path to metadata" --skip-confirmation
Option --enable-offline means that the offline mode for the app will be enabled by default. In the event call generated without this flag, will create the necessary components, but the default mode will be turned off.