官术网_书友最值得收藏!

Installation and setup

As we are going through Ionic 3, most of the developers have previous experience of Ionic installation. We can install ionic via the NPM package; currently Ionic CLI v3 is in beta which has entirely changed how CLI works and now the default project that Ionic will create is based on Ionic 3:

    $ npm install -g ionic

It's recommended to use the 6x version for node and the 3x version of npm. This beta release supports both Ionic 1 and 2 projects. Now let's get started with a project:


// will create Ionic 3x project
$ ionic start wedding-planner sidemenu
// will create Ionic 1x project
$ ionic start wedding-planner sidemenu --type ionic1
// move to projedct directory
$ cd wedding-planner

// run project with ionic serve
$ ionic serve

Now the next steps will be to add specific platforms and plugins required in the application:

   // For adding specific platforms
$ ionic cordova:platform add android

// running application on real device
$ ionic cordova:run android

// running inside an emulator
$ ionic cordova:emulate android

Next, we will be looking at how we can get started with an Ionic 2 application code base. You have to understand how each file and folder is structured and how they work.

主站蜘蛛池模板: 中江县| 泰州市| 哈密市| 武山县| 东阳市| 竹溪县| 桂平市| 江永县| 乌拉特前旗| 开阳县| 靖远县| 浠水县| 精河县| 浦县| 德清县| 玉溪市| 永嘉县| 太谷县| 红原县| 彭水| 湘阴县| 马尔康县| 平遥县| 大宁县| 寻乌县| 德安县| 乐陵市| 山东| 互助| 浪卡子县| 舒兰市| 温宿县| 屯昌县| 胶州市| 交口县| 吉安县| 陇南市| 开江县| 泗洪县| 宜良县| 文成县|