+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Prerequisites for developing Cordova apps with MobileFirst features

To develop Cordova apps that include MobileFirst functionality, the following software is required.


Requirements of Apache Cordova

You must have the software that is required by Apache Cordova for all of your target platforms. For information about those requirements, refer to the platform requirements documentation from Apache Cordova. For example:

For more information, see the Apache Cordova documentation.


Node.js and Node Package Manager (npm)

Node Package Manager, or npm, is a public software repository. The Apache Cordova command-line interface (CLI), the MobileFirst Platform CLI, and the plug-ins that contain the MobileFirst SDK and other MobileFirst features are hosted on JazzHub and npm.

You must install Node.js version 4.0.0 or later to be able to download and run packages from npm. For information about installing Node.js, see the Node js web site. For information about installing npm, see How to install npm.

Note: You must install Node.js to obtain the Apache Cordova CLI from npm. We can install the MobileFirst Platform CLI and the plug-ins that contain the MobileFirst SDK and other MobileFirst features from npm or JazzHub, but alternatively, they are provided with the IBM MobileFirstâ„¢ Platform Foundation Developer Kit.


Cordova command-line interface (CLI)

To develop Cordova applications with MobileFirst features, we must have the Apache Cordova command-line interface installed. You must have version 6.1.1.

You might want to use other development tools that support Apache Cordova as part of your development environment. If so, they usually also require that you install the Apache Cordova CLI. Make sure that your preferred Cordova development tools support Cordova 6.1.1.

For information about installing the Cordova CLI, see Install the Cordova CLI at the Apache Cordova website.


MobileFirst components

For your MobileFirst development, we can choose whether to install the IBM MobileFirst Platform Foundation Developer Kit or to separately install various MobileFirst components.


Cordova plug-ins for enabling MobileFirst features in your app

To develop a Cordova application that includes IBM MobileFirst Platform Foundation features, we must add MobileFirst plug-ins to our app. The plug-ins are available in the IBM MobileFirst Platform Foundation Developer Kit, or we can download them from npm or JazzHub. For more information, see Cordova plug-ins for MobileFirst features.

Parent topic: Develop Cordova applications