Requirements and Prerequisites
Prepare your development environment and server credentials to build your application.
Before building your application with either the SAP Cloud Platform mobile service for SAP Fiori cloud build service or locally on your machine you must prepare your development environment and gather your server credentials. Complete the following steps to prepare your environment.
-
Install the packager dependencies listed in package.json using the package manager (npm). To install them, simply run the following commands in your normal shell:
cd /<path to SDK directory>/apps/packager
npm install
-
Define your package properties with the appConfig.js file. For more information, see Defining Package Properties in appConfig.js.
-
Create a local target directory and download the application assets and related components from the SAP Fiori front-end server, using the downloadfromfes command. For more information, see Downloading from the SAP Fiori Front-End Server.
-
To use the cloud build service, you need a current account for SAP Cloud Platform mobile service for app and device management, and a user name and password for the SAP Cloud Platform mobile service for app and device management API services. For more information, see Generating API Credentials.
-
If you want the packager to sign apps, create valid signing profiles in the SAP Cloud Platform mobile service for SAP Fiori Admin portal. For Android signing, the profile consists of a keystore file, that has a suitable signing key installed in the keystore. For iOS signing, the profile consists of a signing certificate (with a password-protected private key) and a provisioning profile. For information about creating the necessary artifacts, see the iOS and Android documentation. For more information about creating signing profiles in SAP Cloud Platform mobile service for SAP Fiori, see Creating a Signing Profile.
-
Offline-enabled apps require SAP Cloud Platform mobile service for development and operations or SAP Mobile Platform Server: SAP recommends that you use one of these products to manage all of your apps. The hybrid application must be defined in the administration cockpit before the app is launched on the client device. For more information about configuring applications for offline, see Defining Offline Settings for Applications (for SAP Cloud Platform mobile service for development and operations) or Defining Offline Application Settings and Server Configuration: Offline (for SAP Mobile Platform Server).