-
Ensure that you have installed
Node.jsin your machine. -
Install
ionicandcordovaCLI tools, through runningnpm i -g ionic cordovacommand. -
To verify
ionicinstallation, runionic infocommand. Confirm that the command is executed successfully and displayed ionic's version. -
To create a new
Ionicproject, runionic start <project name> <template name>command. Examples:ionic start myProject blankcommand will create a new Ionic project from blank template. -
To show a list of
ionic startcommand'stemplate nameparameter, runionic start --listcommand. -
To run the
ionicproject as a web SPA, runionic serve -ccommand, within the project's root folder. -
To add specific platform on the
Ionicproject, runionic cordova platform add <platform name>. Example:ionic cordova platform add android. -
To build the project for specific platform, run
ionic cordova build androidcommand. -
To deploy the Android .APK into emulator or real device, do these following steps:
-
Run
adb devices -lcommand to ensure the target device is connected. -
Change directory to
platforms/android/app/build/outputs/apk/debug -
Run
adb setup app-debug.apkcommand to install theapkinto the connected device/emulator.
-
Last active
October 17, 2018 05:21
-
-
Save WendySanarwanto/383cfc57cf687a878d9fb16944e169bc to your computer and use it in GitHub Desktop.
ionic-development-flow.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment