Demo of Ionic App enhanced with MobileFirst Platform Foundation 8.0
APACHE-2.0 License
##Ionic + MobileFirst Platform Foundation 8.0 (MFP8)
$ npm install -g mfpdev-cli [email protected] cordova gulp-cli bower ios-deploy
$ android --help
$ adb version
$ javac -version (1.7+)
$ xcodebuild --help
cordova create PATH ID NAME --template TEMPLATE
$ cordova create mfp8-app com.example.myapp Demo --template https://github.com/csantanapr/mfp8-ionic-demo.git
$ cd mfp8-app/
$ npm install
$ rm -rf .git/
or in one single command (Linux, Mac)
$ APP=mfp8-app; cordova create ${APP} com.example.myapp Demo --template https://github.com/csantanapr/mfp8-ionic-demo.git && cd ${APP} && npm install && rm -rf .git/
ionic
cli to add additional platforms and optional plugins$ ionic platform add ios@latest
$ ionic platform add android@latest
Note : If having problems with Android check platforms/android/AndroidManifest.xml that the <application>
elements contains the attribute android:name="com.ibm.MFPApplication"
if not present add the attribute
ionic
cli to emulate and run$ ionic emulate ios --livereload
$ ionic run android --livereload
Ignore if the emulate prints something about missing ios-sim, Latest [email protected] includes ios-sim
ionic
cli for other cordova actions$ ionic prepare
$ ionic build
command
$ mfpdev help [<command>]
$ mfpdev help
$ mfpdev help app preview
$ mfpdev help app config
...
bluemix
for a remote server using the real values from IBM Bluemix$ mfpdev server add bluemix --url http://mobilefoundation-2u-server.mybluemix.net:80 --login admin --password ***** --setdefault
$ mfpdev server info
$ mfpdev app register local
$ mfpdev app register bluemix
$ mfpdev app config server local
$ mfpdev app config server bluemix
$ ionic prepare
$ mfpdev app preview
$ mfpdev app preview ios
$ mfpdev app preview ios android
$ mfpdev app pull local
$ mfpdev app push bluemix
$ mfpdev app webupdate bluemix
Apache 2.0