Create a Cordova mobileFirst Project in Eclipse Mars 2

 Create a Cordova mobileFirst Project in Eclipse Mars 2.

1.) Create new Project Cordova ,  Right Click > New > Hybrid Mobile(Cordova) Application Project > Next > (and add the Project Name: , Name:, ID:)

cordova1.jpg

2.) (Get the mobile Engine – download android sdk 5.1.1) Next > Download .. choose option SDK Android 5.1.1

cordova2.jpg

3.) Add the Cordova Plugin – mfp* , select – cordova-plugin-mfp.

cordova3.jpg

4.) Select to confirm plugins to be downloaded from registry.

cordova4.jpg

5.) Finish.

6.) Deploy and Start your application on MobileFirst Console Foundation 8.0

6.1.) Start the Server MobileFirst Console Foundation 8.0.

  • Here I’m using cygwin (linux in windows) terminal to run MobileFirst.

cordova5.jpg

  • //MobileFirst-8.0.0.0
  • $ sh run.sh

7.) Make sure your console up like below image:

cordova6.jpg

8.)Edit your index.html to change the view of your first page App mobile.

cordova10

  • change the html code ( I just added the blue lines) :
 <body>
        <h1>This your First Application</h1>
        <h2>Welcome to cordova mobileFirst</h2>
        http://cordova.js
        http://js/index.js
    </body>

9.) In Eclipse , Right Click Project > IBM MobileFirst Platform Foundation > Register App.

cordova8.jpg

10.) To run Application to Emulator IBM, Right Click Project > IBM MobileFirst Platform Foundation > Preview App. Automatically will load to the browser – emulator.

cordova9.jpg

Selamat Berjaya….2016 – Donald Trump Won USA Presidency

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s