MobileFirst Foundation 8.0 Developer Labs
Pre-requisites:
Follow the Setup section to install an Ubuntu image, install the MobileFirst Developer Kit, archetypes and CLI and register at IBM Cloud.
You can download videos for offline usage from from Dropbox or OneDrive (2.62 - 2.66)
Setup
The recommended way to setup your workstation for these labs is to download the prepared VMware image that has all required software installed and ready to be used. However, if you want to do this on your own you will need to setup the dependencies listed below.
- Google Chrome CORS extension
- Visual Studio Code
- Oracle JDK 7
- Android SDK
- Google Play Services
- Android Support repository
- Google Repository
- API v23
- Build tools v23
- Intel x86 Atom_64 image v23
- curl
- nodejs
- npm
- bower
- gulp
- cordova
- ionic@2.0.0-beta.32
- cdvlive
- maven
- git
- python
If you will be using ubuntu-based x64 distro, additional packages are required: lib32z1, lib32ncurses5, lib32bz2-1.0, and lib32stdc++6.
Finally, do not forget to set JAVA_HOME, ANDROID_HOME, MAVEN_HOME and M2_HOME and add them to your PATH.
Alternatively to watching labs on YouTube, you can download offline version from Dropbox or OneDrive. The videos are located inside the "labs_en" folder and have "webm" extension. VLC, same as most of media players and browser will be able to play them.
Download and setup the VM image
- Download the VMware image archive from Dropbox or OneDrive (7.7 GB)
- Import the downloaded .ova file into the latest version of VMware Player / VMware Fusion / VMware Workstation
- Set the VM settings to at least 2 CPU cores and 4GB of RAM; Enable VT-x/EPT support (may also be required to enable it in the computer BIOS as well)
- Start the VM image
- Use user "ibm" and password: “QQqq1234″ to log in. Same password is set for sudo
Download and install the MobileFirst Developer Kit
- Follow the MobileFirst Developer Kit setup instructions and install devkit into /home/ibm/dev/server/ folder
- Install the MobileFirst CLI by running from Terminal:
npm install -g mfpdev-cli
- If you expect to not have an Internet connection available, install the adapter archetypes from the Download Center in the MobileFirst Operations Console.
Register on IBM Cloud
- Navigate to registration page, fill required info and register.
- Check your mailbox and verify email
- Make sure that you are able to login inside IBM Cloud console
Part 1
Lab highlights
- Moving existing app to Mobile Foundation 8.0
- Uses Ionic v2 beta with Typescript
- Development using CLI and MS Visual Studio Code
- Using Java and Javascript adapters for backend calls
- User authentication
- Push notifications messaging
- JSONStore
- Uses Google Maps Distance Matrix API
- Uses Node.js as mock server
Time to complete: up to 4 hours
Lab steps
Time to complete: 30 minutes
Lab number for offline usage: 2.62
Lab helpers:
Repository URL
https://github.com/andriivasylchenko/advancedMessenger
Catching events
Init complete function
Link to completed lab github repository branch
Time to complete: 40 minutes
Lab number for offline usage: 2.63
Lab helpers:
Adapters examples repository URL
https://github.com/MobileFirst-Platform-Developer-Center/Adapters/tree/release80
Employee Javascript adapter getRating()
News Java adapter JSONObject parsing
Employee provider load function
News provider load function
Link to completed lab github repository branch
Time to complete: 50 minutes
Lab number for offline usage: 2.64
Lab helpers:
AuthInit function
displayLogin function
Getting active nav
Link to completed lab github repository branch
Time to complete: 30 minutes
Lab number for offline usage: 2.65
Lab helpers:
Push provider
Link to completed lab github repository branch
Time to complete: 45 minutes
Lab number for offline usage: 2.66
Lab helpers:
Storage provider
News provider load function
Link to completed lab github repository branch
Part 2
Lab highlights
- Authenticating external resources
- Using Direct Update and Remote Disable
- Mobile Operational Analytics
- Security scan of application binary
- Bug reporting and user sentiment analysis
- Moving Node.js app to IBM Cloud using Cloud Foundry Node runtime
- Creating Mobile Foundation instance on IBM Cloud
- Preparing mobile application for distribution
Time to complete: up to 4 hours
Lab steps
Time to complete: 45 minutes
Lab number for offline usage: 2.70
Lab helpers:
Schedule provider
Link to completed lab github repository branch
Time to complete: 15 minutes
Lab number for offline usage: 2.71
Link to completed lab github repository branch
Time to complete: 20 minutes
Lab number for offline usage: 2.72
Lab helpers:
Handle challenge
Link to completed lab github repository branch
Time to complete: 5 minutes
Lab number for offline usage: 7.8
Time to complete: 25 minutes
Lab number for offline usage: 7.9
Time to complete: 35 minutes
Lab number for offline usage: 7.10
Lab helpers:
Package dependencies
Time to complete: 25 minutes
Lab number for offline usage: 6.7
Time to complete: 20 minutes
Lab number for offline usage: 9.5
Lab helpers:
Terminal commands
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.