Blog Listing App Tutorial Part 1 – Setting Up Cordova App

Setting Up Cordova App

Hi there buddy!

This is the continuation of my previous post Apache Cordova Blog Listing App

Important Note

This tutorial assumes that you already have installed Cordova on your machine! 🙂 If not, then I encourage you to visit this site
UPDATE:
This is the latest site

Let’s create the app by typing the following command on your terminal (on Mac OS and Linux) or command prompt (on Windows)

    $ cordova create hello com.example.test Test

After creating the app, let’s go to the project directory:

    $ cd test

Next, let’s add platforms:

Note:

Before you can build the project, you need to specify a set of platforms but this depends on your machine which supports specific SDKs, or whether you have already installed each SDK.

For Mac:

    $ cordova platform add ios
    $ cordova platform add amazon-fireos
    $ cordova platform add android
    $ cordova platform add blackberry10
    $ cordova platform add fireboxes

For Windows:

    $ cordova platform add wp8
    $ cordova platform add windows
    $ cordova platform add amazon-fireos
    $ cordova platform add android
    $ cordova platform add blackberry10
    $ cordova platform add fireboxes

To check your current set of platforms already installed:

    $ cordova platforms ls

We also have the choice to remove a platform:

    $ cordova platform rm amazon-fireos

Now, let’s build the app:

    $ cordova build

After building the app, let’s browse our app’s directory.

test directory

test directory

Now there you have it! We have correctly set up our Cordova App. Stay tuned for the part 2 of this tutorial.

If you have questions, don’t hesitate to leave your comments or if you find some typographical errors please let me know 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.