Sample Application for IBM MobileFirst Platform Foundation on IBM Containers

improve this page | report issue
This tutorial is not relevant any more as the ibm-mobilefirst-starter image has been discontinued and the use of this image has reached end of support. Read the announcement blog.

Consider using IBM Mobile Foundation v8.0, by using the new Mobile Foundation Bluemix service. Learn more about to the Mobile Foundation service.

Overview

To complete your evaluation experience of IBM MobileFirst Platform Foundation on IBM Containers, download the Wishlist sample application.

Note: No additional setup is required in your development computer for this evaluation. However, to run applications on devices, you might have to go through some prerequisite setup, such as device provisioning in Xcode. Such prerequisite steps are outside of the scope of this tutorial and of IBM MobileFirst Platform.

Topics

Wishlist sample application

missing_alt The Wishlist application is meant for iOS, Android, or hybrid environments (iPhone, Android).
The application implements the following functionality:

  • Fetches catalog data (a hard-coded list of items) from a web service by using the catalog adapter.
  • Contains a secured wishlist area which allows users to save catalog items or custom items (by manually entering the item details) into a store. By default, the store uses a Cloudant database, but if it is configured otherwise, it can store data by using the local file store.

The wishlist section within the application is accessible via authentication. For demonstration purposes, use "user" and "password" as the user/password.


Downloading the sample application

Native iOS app

Click to download the native iOS application from GitHub

Native Android app

Click to download the native Android application from GitHub

Hybrid app

Click to download the hybrid application from GitHub

Configuring the sample application

To have the sample application connect to the MobileFirst Server instance that is running in your container, follow the next steps for a hybrid or native app:

Open the application in your favorite IDE

  • iOS: Navigate to the MobileFirstStarter\apps\WishList\iphone\native and double-click the .xcodeproj file.
  • Android: Open the MobileFirstStarter\apps\WishList\android\native folder in Android Studio.

Run the application

  • In the container Overview page, find the Server IP address.
  • Build and run it in the IDE of the selected environment.
  • Run the app from Xcode/Android Studio into your device and supply the IP address in the application UI.

Open the application in your favorite IDE

  • iOS: Navigate to the WishListiOS folder and double-click the .xcworkspace file.
  • Android: Open the WishListAndroid project in Android Studio.

Run the application

  • In the container Overview page, find the Server IP address.
  • Build and run it in the IDE of the selected environment.
  • Run the app from Xcode/Android Studio into your device and supply the IP address in the application UI.

What's next

You can now edit the application code.

You can develop applications either in MobileFirst Studio -- an Eclipse plug-in that provides an IDE-like experience -- or on the Command Line Interface, which you can use with your favorite IDE.

After you've downloaded the tool of your choice, learn about the possibilities in the Getting Started section.

Last modified on March 10, 2017