Ionic2 Development Environment build tutorial, ionic2 build tutorial

Source: Internet
Author: User
Tags install node

Ionic2 Development Environment build tutorial, ionic2 build tutorial

Network Environment: FQ is not required in the ionic development environment. I have not set FQ here, so it is feasible to test it in person. However, to build the development environment of angular2, the FQ network is required. Otherwise, many packages may fail to be installed.

It is recommended that you do not refer to the various blogs from Baidu when building a development environment. They are too fragmented. What matters is that they have not been correctly written for a long time. We strongly recommend that you refer to the tutorials on the official website. Http://ionicframework.com/gettingstarted/

1. Download and install Node. js. Official website address: https://nodejs.org/en/ I have installed v7.10.0133.

2. After the installation is complete, run the command line node-v to view the installed version.

3. Install cordova and ionic through npm. Input: npm install-g cordova ionic

After the installation is complete, the window is as follows:

4. after the ionic is installed successfully, you can create your first project: ionic start myApp tabs. By default, the ionic2 project is created. To create ionic1.x, add -- v1 to the end of the command. In addition, tabs indicates the template, and blank, sidemenu, tutorial, super, and Other templates.

5. After the project is successfully created, run cd in the project root directory and ionic serve to run the project. The project will be automatically viewed in the browser.

Shows the directory structure of the entire Ionic2 project:

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.