Simple MFPF Web SDK tester with Ionic 2 RC.4
Main goal was to create reusable test application for MobileFirst Foundation 8 Web SDK and Ionic 2 Web development approach.
- Node, npm
- cordova, ionic
- MFPF 8.0 server
- Clone this repository
- Type
npm install
in root project folder - Type
ionic state restore
in root project folder - Open MFPF Operations Console and deploy JavaAdapter and UserLogin security check from adapters folder in this repository
- Register web application with applicationID com.ibm.websample in Operations Console
- Create scope-element mapping for you app (MyCustomScope to UserLogin)
- Copy your fully qualified server url and past it in
ionic.config.json
under proxyUrl with adding /mfp at the end - Replace content of the file
node_modules/@ionic/app-scripts/config/copy.config.js
with content from filecopy.config.js
that is located in project root folder
Type ionic serve
in terminal. If you will face cannot read property indexOf
error, then re-save home.ts file under src/pages/home