设置 MobileFirst 开发环境

improve this page | report issue


概述

IBM Mobile Foundation 由以下组件组成:客户机 SDK、适配器原型、安全性检查和认证工具。

可以从在线存储库中获取这些组件,并可以使用软件包管理器来安装这些组件。 这些在线存储库提供了各个组件的最新发行版。 也可以从 MobileFirst Developer Kit 下载相同的组件以在本地使用。 请注意,Developer Kit 提供的版本表示发布特定 Developer Kit 构件时提供的版本;要使用最新版本,需要下载新的 Developer Kit 构件。

继续阅读以了解有关 Mobile Foundation 组件的更多信息。

要评估 Mobile Foundation,只需使用 Mobile Foundation IBM Cloud 服务在 IBM Cloud 上扩展 MobileFirst Server 实例即可。 请参阅使用 Mobile Foundation 教程,以获取相关指示信息。 也可以选择安装 Developer Kit 作为本地安装。

跳至:

安装指南

阅读安装指南,以便在工作站中快速设置 MobileFirst Foundation。

MobileFirst Developer Kit

Developer Kit 提供了具有最低配置的支持开发的环境。 此工具包中包含 MobileFirst Server、MobileFirst Operations Console 和 MobileFirst Developer 命令行界面 (CLI),并选择性地提供了可供下载的客户机 SDK 和适配器工具。

注:如果您需要在未连接因特网的计算机上设置开发环境,那么可脱机安装组件。 请参阅如何设置脱机 IBM MobileFirst 开发环境

Developer Kit 安装程序

对于无法连接因特网的本地安装,安装程序也打包了适用于这类安装的组件。
可通过 MobileFirst Operations Console 的“下载中心”来获取这些组件。

要下载安装程序,请访问下载页面。

Mobile Foundation 组件

MobileFirst Server

WebSphere Liberty Profile 应用程序服务器上提供并预先部署了 MobileFirst Server(作为 Developer Kit 的一部分)。 该服务器通过“mfp”运行时进行预配置,并使用基于文件系统的 Apache Derby 数据库。

在 Developer Kit 根目录中,提供了可从命令行中运行的以下脚本:

  • run.[sh|cmd]:使用尾部 Liberty Server 消息运行 MobileFirst Server
    • 添加 -bg 标志以在后台运行该进程
  • stop.[sh|cmd]:停止当前的 MobileFirst Server 实例
  • console.[sh|cmd]:打开 MobileFirst Operations Console

.sh 文件扩展名用于 Mac 和 Linux,而 .cmd 文件扩展名用于 Windows。

MobileFirst Operations Console

MobileFirst Operations Console 公开了以下功能。
开发人员可以:

  • 注册和部署应用程序及适配器
  • 选择性地下载本机/Cordova 应用程序和适配器起动器代码模板
  • 配置应用程序的认证和安全性属性
  • 管理应用程序:
    • 应用程序真实性
    • 直接更新
    • 远程禁用/通知
  • 将推送通知发送到 iOS 和 Android 设备
  • 生成 DevOps 脚本以实现连续集成工作流和缩短开发周期

请参阅使用 MobilFirst Operations Console 教程,以了解有关 MobileFirst Operations Console 的更多信息。

Mobile Foundation 命令行界面

除了使用 MobileFirst Operations Console 之外,还可以使用 MobileFirst CLI 开发和管理应用程序。 CLI 命令使用 mfpdev 作为前缀,并支持以下类型的任务:

  • 向 MobileFirst Server 注册应用程序
  • 配置您的应用程序
  • 创建、构建和部署适配器
  • 预览和更新 Cordova 应用程序

要下载并安装 MobileFirst CLI,请访问下载页面。
请参阅使用 CLI 管理 MobileFirst 工件教程,以了解有关各种 CLI 命令的更多信息。

Mobile Foundation 客户机 SDK 和适配器工具

Mobile Foundation 提供了用于 Cordova 应用程序和本机平台(iOS、Android、Windows 8.1 Universal 和 Windows 10 UWP)的客户机 SDK。 同时还提供了用于适配器和安全性检查开发的适配器工具。

应用程序和适配器开发

应用程序

  • Cordova 应用程序需要 NodeJS 和 Cordova CLI。 请阅读有关设置 Cordova 开发环境的更多信息。

    您可以使用自己首选的代码编辑器(如 Atom.io、Visual Studio Code、Eclipse、IntelliJ 等)来实施应用程序和适配器。

  • 本机应用程序需要 Xcode、Android Studio 或 Visual Studio。 请阅读有关设置 iOS/Android/Windows 开发环境的更多信息。

适配器

适配器要求安装 Apache Maven。 请参阅适配器类别,以了解有关适配器以及如何创建、开发和部署适配器的更多信息。

后续教程

请访问全部教程页面,并选择接下来要学习的教程类别。

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