This is a starter template for Ionicprojects.
*Download the files https://github.com/venkatch668/ionic2.git
Take the name after ionic2-
, and that is the name of the template to be used when using the ionic start
command below:
$ npm install -g ionic cordova
$ ionic start myTabs tabs
Then, to run it, cd into myTabs
and run:
$ ionic cordova platform ios or $ ionic cordova platform andorid
$ ionic cordova run ios or $ ionic cordova run andorid
Install Ionic and coredova files
Command : npm install -g cordova ionic
-
Develop your own login / application as per requirement
Install Latest Android SDK(2.3), Java Latest version (1.8)
Ref: https://developer.android.com/studio/index.html
Ref: https://www.java.com/en/download/windows-64bit.jsp
Set proper environment variables
1. JAVA_HOME
2. Path
Get Setup/build ready
Command: ionic cordova run android --prod –release
Then it will create unsigned .apk file in below path
Path: myApp\platforms\android\build\outputs\apk
But to install in device we need signed .apk
Sign Android APK
Command: keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias
Enter password: demoadmin123 & re-enter again (Note: we can use any password, we should use same password in whole app)
Command: jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks android-release-unsigned.apk my-alias
Enter password: demoadmin123
<p><b>Additional Points:</b></p>
1. Need 5 hours of time to setup
2. Good internet speed
3. Careful on setup javapath
@venkat