Setting up the Cordova development environmentimprove this page | report issue
To get started with Cordova (PhoneGap) development the very basic required step is to install the Cordova CLI. The Cordova CLI is the tool enabling you to create Cordova applications. These applications can be further enhanced by using various 3rd party frameworks and tools such as Ionic, AngularJS, jQuery Mobile and many more. With Cordova applications you can use your preferred code editor, such as Atom.io, Visual Studio Code, Eclipse, IntelliJ and others for implementing your applications and adapters.
Prerequisite: As you setup your Cordova development environment, make sure to also read the Setting up the MobileFirst development environment tutorial.
Installing the Cordova CLI
Mobile Foundation supports Apache Cordova CLI 6.x or greater.
- Download and install NodeJS.
- From a Command-line window, run the command:
npm install -g cordova.
To continue with MobileFirst development in Cordova applications, the MobileFirst Cordova SDK/plug-ins need to be added to the Cordova application.
- Learn how to add the MobileFirst SDK to Cordova applications.
- For applications development, refer to the Using the Mobile Foundation SDK tutorials.
- For adapters development, refer to the Adapters category.
Inclusive terminology note: The Mobile First Platform team is making changes to support the IBM® initiative to replace racially biased and other discriminatory language in our code and content with more inclusive language. While IBM values the use of inclusive language, terms that are outside of IBM's direct influence are sometimes required for the sake of maintaining user understanding. As other industry leaders join IBM in embracing the use of inclusive language, IBM will continue to update the documentation to reflect those changes.