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

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.

主站蜘蛛池模板: 富川| 上饶市| 额敏县| 大石桥市| 乐陵市| 海门市| 象山县| 景德镇市| 博爱县| 额尔古纳市| 峡江县| 河源市| 上犹县| 宜阳县| 满城县| 永昌县| 马鞍山市| 达拉特旗| 措勤县| 塔城市| 福安市| 和田县| 永寿县| 青浦区| 奉节县| 平昌县| 盐城市| 北碚区| 南川市| 景谷| 玛沁县| 出国| 东兴市| 婺源县| 石嘴山市| 博客| 吴川市| 明星| 武功县| 沙河市| 洛宁县|