Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Installation of ionic 2.

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 572
    Comment on it

    Hello Readers,

    We can create apps with ionic2 very fast as ionic1. To create a ionic project first of all we need to install ionic2 beta version SDK via CLI.

     

    $ npm install -g ionic@beta

     

    Important : First of all we need to install node first. If not download click here.

     

    Now we have installed ionic2 and we can create an ionic2 project through CLI :

    $ ionic start ionic2Demo --v2

     

    move into the project through CLI :

    cd ionic2Demo

     

    With the above command we have created a demo named ionic2Demo project, we can run the demo project using following command:

    $ ionic serve

     

    With the above command we can run app in browser.

    If we want to run our app into device we need to install Cordova, via CLI if already installed then ignore.

    $ sudo npm install -g cordova

     

    Once Cordova installed now we can build apps on devices or emulator.

     

    Buildings apps for iOS, Android platform:

    Building apps for iOS we need to add iOS platform in project. To add platform, run:

    $ ionic platform add iOS

     

    To building apps doe android we need to add android platform in the project. To add platform , run:

    $ ionic platform add android

     

    With the above article we can easily install ionic2 and build the apps.

    Hope this will help you :)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: