1, set up environment
1, Node.js computer installation, the installation is automatically installed NPM computer
2, through the cmd command, installation cnpm
Elevation install g cnpm -registry = https: // registry.npm.taobao.org
3, by cmd, mounting ionic
4, the installation VScode code editor, a code development
2, the basic command
Create a project: (helloWorld project name; - type = ionic-angular add-generated version 3, do not add generation version 4)
Note: blank - empty project; tabs - the bottom of the column; sidemenu - sliding bar
ionic start helloWorld blank --type=ionic-angular
modules Download:
cnpm i
cmd run the project:
ionic serve
cmd to generate the page:
ionic g page testPage
cmd generation component associated with the page:
ionic g component main page / components / modal name
cmd generation model:
ionic g module module名字
Generating package: www folder generation project directory, and then execute the implementation of the second open cmd line at www directory name generation war
ionic build --prod
jar -cvf jkb.war *
3, official development documents
ionic3:https://ionicframework.com/docs/v3/intro/installation/
ionic4:https://ionicframework.com/docs