In this lab, imagine you are an Enterprise that owns car service centers utlizing an on-premise CRM. You want to equip service center employees with mobile, and build an app that will help them coordinate activities in the service center to improve service times and quality of service across potentialy tens of thousands of locations.
One important element in this solution it is to allow your employees to have access to the most accurate data about your customer, as a customer can engage with your Enterprise via multiple channels.
So through this example we will explore a possible architecture that would allow an Enterprise that already has an OnPrem CRM solution, to expose the CRM data to a mobile app for its Service Centers employees, so they can deliver better customer service.
We will be utilizing the IBM Cloud services:
- Mobile Foundation
- Push Notifications
- Analytics
- Appsody
- User launches the mobile app, enters his/her credentials on the login screen and clicks
Login. - Mobile app sends the user credentials to MFP server for validation with Authorization.
- user authentication succeeds, mobile app proceeds to show the home page. As part of this, it makes a call to Node Server running on Appsody to fetch the data.
- Once the data fetched the users details are shown on the App.
- User clicks on one of the list item to see more details. A detail page is shown consisting of image, information and the visits he/she made if any.
- Back in the home page, user clicks on floating action button
+to register, A new page is shown where user can enter a description details for the new registration. User clicks onregisterbutton. - Mobile app send the registration details to the BackEnd.
- Meanwhile user can also book an appointment on particular date.
- If Required , User will be alerted with a
Push Notificationif he/she is due for car service. - User actions can be captured via
mfp analyticssuch asuserlogin-failures,userlogin-success,registrations,login,logoutetc
In this lab we will cover how to implement the solution above asynchronously. The mobile app will be reading from a cached data repository which will be updated as frequently as possibly. The mobile app will also be writing (creating new customers/visits) . This allows the CRM to consume updates in a more controlled flow, mitigating the peaks and valleys of a service center working day. So if needed, more resources can be added to the CRM to support more load throughout the day, to keep data updated with less latency.
- Login page validates the login from MFP Server
- User creates a new visit in the mobile app (Mobile App)
- User requests to view information on a specific visit
- User requests to view information on a specific customer
Head over to the lab’s GitHub repository to see the labs mentioned below.
| Lab | Description |
|---|---|
| Ionic Mobile App | This lab shows how to integrate the Ionic App with the Adapters. |
| Appsody-project | This lab shows how to use Appsody using Node stack as a back end to serve request from Ionic App |
- Install
Node.jsby downloading the setup from https://nodejs.org/en/ (Node.js 8.x or above)
$ node --version
v12.14.1
- Install Cordova
$ sudo npm install -g cordova
$ cordova --version
9.0.0 ([email protected])
Note: If you are on Windows, instead of using sudo, run the above command (and the ones below) in a command prompt opened in administrative mode.
Note: Please refer MFP documentation for compatible versions of Cordova - https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/sdk/cordova/
- Install Ionic
$ sudo npm install -g ionic
$ ionic --version
6.0.1
- Install IBM MobileFirst Platform CLI
$ sudo npm install -g mfpdev-cli
$ mfpdev --version
8.0.0-2018121711
Set up MFP Server and configure MFP CLI
- Start MobileFirst Server instance locally by downloading the Developer Kit and installing it on your workstation.
- the default url would be http://localhost:9080 and username/password would be admin/admin .
[06:04:17] root: Advanced-Car-Service > mfpdev server add
? Enter the name of the new server profile: devserver
? Enter the fully qualified URL of this server: http://localhost:9080
? Enter the MobileFirst Server administrator login ID: admin
? Enter the MobileFirst Server administrator password:
? Enter the context root of the MobileFirst administration services: mfpadmin
? Enter the MobileFirst Server connection timeout in seconds: 30
? Make this server the default?: Yes
Verifying server configuration...
The following runtimes are currently installed on this server: mfp
Server profile 'devserver' added successfully.
[06:05:00] root: Advanced-Car-Service > mfpdev server info
Name URL
---------------------------------------------------
local http://192.168.1.4:9080
charan http://9.109.207.198:9080
devserver http://localhost:9080 [Default]
---------------------------------------------------







