ionic 3 开发之路

1.  环境搭建

         JDK  安装及环境变量配置(安装教程参考

   安装python2.7(切记勿装3.x,问题较多)安装教程参考

         Android SDK 安装( 安装教程参考) 建议安装7.0 或以上。

   Node 安装(建议安装8.9

2.  按官方教程操作

    

     

  • Install Ionic

    npm install -g cordova ionic

    First, install Node.js. Then, install the latest Cordova and Ionic command-line tools in your terminal. Follow the Android and iOS platform guides to install required tools for development.

  • Start an App

    ionic start myApp tabs

    Create an Ionic App using one of our ready-made app templates, or a blank one to start fresh. Check out the Market for more designs.

    For v1 projects, use the --type ionic1 flag.

    • $ ionic start myApp blank
    • $ ionic start myApp tabs
    • $ ionic start myApp sidemenu
  • Run your App

    cd myApp
    ionic serve
                  

    Much of your app can be built right in the browser with ionic serve. We recommend starting with this workflow.

    When you're ready to deploy your app to a real device, check out our Deploying guide.

         

    

  Build your App

         android  (安装过android sdk)

            cordova platform add android            

      cordova   run  adnroid

       ios          

     cordova platform add ios            

      cordova   run  ios

 

                

    

posted @ 2018-01-01 00:49  xiaoma_ge  阅读(205)  评论(0编辑  收藏  举报