- Clone this repository
$ git clone https://github.com/mfpdev/mfp71-with-angular2.git
-
Deploy the MFRSSAdapter
-
Copy the MFRSSAdapter Copy the MFRSSAdapter folder to the
adapters
folder on your MFP 7.1 server. -
Build and deploy the adapter:
- From the terminal window, navigate into the adapter folder and run the following:
$ mfp push
-
-
Install and run the Sample app
- From the terminal window, navigate into BlogApp and run:
$ npm install
-
Transpile the TypeScript code in the app folder with gulp commands:
- Run
build
to transpile the TypeScript code once
$ gulp build
- Or run
watch
to letgulp
transpile the TypeScript code on every time you change something in the app folder.
$ gulp watch
- Run
-
Add the cordova-plugin-mfp plugin :
$ mfp cordova plugin add cordova-plugin-mfp
-
Add your platform (ios/android):
$ mfp cordova platform add ios
-
Deploy the application:
$ mfp push
-
Preview the application:
$ mfp cordova preview
-
Run the application:
$ mfp cordova emulate
Caution: Always run Cordova commands using the mfp CLI (e.g mfp cordova emulate). Running Cordova directly will cause the app to stop working since MFP 7.1 does not work with Cordova version beyond 3.7
IBM MobileFirst Platform Foundation 7.1
Copyright 2016 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.