Skip to main content
  1. All Posts/

ecommerce

eCommerce TypeScript

Documentation

https://bit.ly/ion2fullapp-elite-version-documentation

Workflow

##To run your app in the browser (great for initial development):

  • Install all the npm dependencies
    npm install
  • Serve the app in your browser
    ionic serve

##To run on iOS:

  • Add cordova platform
    ionic cordova platform add ios or cordova platform add ios

** NOTE: ** If you add the platform using the ionic command, then you may experience that nothing is happening for a while (you will just see ‘Running command’ in your terminal). In the other hand if you add the platform directly with cordova you will be getting verbose updates on what’s doing in the background

  • Run it (on your device if connected or in the emulator)
    ionic cordova run ios --prod

** NOTE: ** We include the --prod flag to force Angular Ahead of Time compilation for the app
##To run on Android:

  • Add cordova platform
    ionic cordova platform add android or cordova platform add android

** NOTE: ** If you add the platform using the ionic command, then you may experience that nothing is happening for a while (you will just see ‘Running command’ in your terminal). In the other hand if you add the platform directly with cordova you will be getting verbose updates on what’s doing in the background

  • Run it (on your device if connected or in the emulator)
    ionic cordova run android --prod

** NOTE: ** We include the --prod flag to force Angular Ahead of Time compilation for the app
##Review ionic CHANGELOG when updating ionic-angular version
https://github.com/driftyco/ionic/blob/master/CHANGELOG.md

Configs

Cordova (uses config.xml)

Mass saving platforms on an existing project

cordova platform save
Use it when you have a pre-existing project and you want to save all the currently added platforms in your project.

Ionic (uses package.json)

Clean and install

ionic state reset
This will remove everything then bring back what you have specified in the package.json file.

Store current state

ionic state save
To store the current platforms and plugins to the package.json

Restore current state

ionic state restore
This will add in the appropriate plugins and platforms from the package.json