[Ionic] Build and Run an Ionic App from Scratch

Install:

npm install ionic cordova -g

 

Create a project with blank template:

ionic start <project_name> blank

 

Start:

cd <proejct_name>
ionic serve

 

Then you will see the web page in the broswer.

 

And you can simply copy your proejct build version to the www folder to let ionic serve you app. 

Or if you don't have build version, you can replace your vendor files with CDN's https file.

 

If you havn't install android on machine, checkout how to install it and run it.

 

Run Android:

ionic platform add android

ionic run android

 

posted @ 2016-02-14 02:00  Zhentiw  阅读(233)  评论(0编辑  收藏  举报