设置 Cordova 开发环境
improve this page | report issue
概述
要开始 Cordova (PhoneGap) 开发,最基本的步骤是安装 Cordova CLI。 Cordova CLI 是一款可用于创建 Cordova 应用程序的工具。 可使用各种第三方框架和工具(如 Ionic、AngularJS 和 jQuery Mobile 等)来进一步提升这些应用程序的性能。 对于 Cordova 应用程序,可以使用您首选的代码编辑器(如 Atom.io、Visual Studio Code、Eclipse、IntelliJ 等)来实施应用程序和适配器。
先决条件:设置 Cordova 开发环境时,请确保您还阅读了设置 MobileFirst 开发环境教程。
安装 Cordova CLI
Mobile Foundation 支持 Apache Cordova CLI 6.x 或更高版本。
要进行安装:
- 下载并安装 NodeJS。
- 从命令行窗口中,运行以下命令:
npm install -g cordova
。
后续步骤
要在 Cordova 应用程序中继续开发 MobileFirst,需要将 MobileFirst Cordova SDK/插件添加到 Cordova 应用程序中。
- 了解如何将 MobileFirst SDK 添加到 Cordova 应用程序中。
- 要了解应用程序开发,请参阅使用 Mobile Foundation SDK 教程。
- 要了解适配器开发,请参阅适配器类别。
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.
Last modified on June 01, 2020