sassafrastech / rcredits-mobile

Mobile application for rCredits
0 stars 2 forks source link

rCredits App

Initial Setup

  1. npm install -g bower
  2. npm install
  3. ionic state restore
  4. bower install
  5. ionic setup sass
  6. BUILD_TARGET=development gulp config where xxx is one of development, staging, or production. This command copies config from the /config.js and /local_config.js files. Only config matching the given build target (or lying outside an @if block) is copied.

To run the app in your default browser:

  1. ionic serve

To Run on Device

ionic state restore # Only if plugins or platforms may have changed
ionic run <android|ios>

Adding a Plugin

  1. Always use ionic plugin add, not cordova plugin add
  2. Ensure the version is specified in the package.json.
    1. For regular plugins, add @version to the end of the command, e.g. ionic plugin add cordova-plugin-audio-recorder-api@0.0.6.
    2. For git repos, use # instead.
    3. If you don't know the version, you can add without version, check it with ionic plugin list, remove, and then add versioned.

If Packages Get Screwed Up

npm rebuild

If SCSS/CSS Gets Screwed Up

gulp sass

To Run Unit Tests

karma start

To Run in Browser

ionic serve