Tuesday, November 15, 2016

MobileFirst on Bluemix: Getting Started

Hi folk,

As I explained in previous post the IBM MobileFirst Platform is available as an on-premise server or on the IBM Bluemix cloud offering. In this example I'm going to focus on the MobileFirst for Bluemix cloud offering for creating a mobile application and then download to emulate in a test environment.

You’ll first need to sign into your Bluemix account. If you don’t already have one, you can create a trial account for free.

The steps are divided into::
Step 1 - Create the MobileFirst service to register the applications
Step 2 - Create an application
Step 3 - Download code and emulate

Step 1 - Create the MobileFirst service to register the applications

Procedure:
1. Login into IBM Bluemix dashboard
2. Click Catalog tag menu
3. Click Mobile option
 3. Click Mobile Foundation
4. You can find the different prices and rates. Create a developer instance for free. Change the default server name and click Create
5. The creation of the service allows you to parameterize advanced options. In this example I want to start the default basic server. Scroll down and click Star Basic Server
Note: Starting the server can take up to 10 minutes to complet.
6. Launch the administration console. Click Launch Console
Note: Copy the automatically generated password for the admin user

7. Login with admin user to MobileFirst Operations Console

 

Step 2 - Create an application

Procedure:
1. Go to IBM Bluemix Mobile project dashboard from menu App and select Mobile
2. Click Create Project
3. Select the Business Directory starter and click Create Project
4. Write the Project Name and click Create
5. Click Build Get Code
6. Select Android platform
Note: Generate Code can take up to 1 minutes to complet.

After the code has been generated, three options are displayed:

 

Step 3 - Download code and emulate

Procedure:
1. Click Download Code
2. Unzip the file
3. Open Android Studio and Open an existing Android Studio project
4. Select the folder unziped
Note: If an error occurs when synchronizing the project Gradle. Click Install and wait for the installation to finish
5.  Click Run to build and run the application in the emulator
In the emulator appears the application created in Bluemix !!
I just set up a development environment with an application created from a Bluemix template, wow!

Soon I will publish how the application is registered on the created MobileFirst service and how the application uses Bluemix services. Be Patient !!!

Cheers!

No comments:

Post a Comment