Coder Social home page Coder Social logo

rcredits-mobile's Introduction

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.
  3. For regular plugins, add @version to the end of the command, e.g. ionic plugin add [email protected].
  4. For git repos, use # instead.
  5. 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

rcredits-mobile's People

Contributors

sergiomilici avatar linesarefuzzy avatar

Watchers

James Cloos avatar Jill Dimond avatar

rcredits-mobile's Issues

Referencing the wrong server or not being able to load remote content from rcredits.org

Hello Sassafras โ€“ this is Aaron, a new developer with rCredits. I have been trying to build your new mobile app but have been running into error messages. Initially my errors had to do with my not fully understanding Ionic, however after resolving those, I now think it is more the rCredits app, related to referencing the wrong server or not being able to load remote content from rcredits.org. I am getting errors after scanning in a barcode. In Android Studio/Android Manager/logcat, it now gives the message:

...
05-05 14:08:30.671 12503-12512/com.ionicframework.rcreditsmobile621273 D/dalvikvm: GC_FOR_ALLOC freed 0K, 17% free 11604K/13816K, paused 20ms, total 20ms
05-05 14:08:30.702 12503-12503/com.ionicframework.rcreditsmobile621273 D/CaptureActivityHandler: Got decode succeeded message

                                                                                                 [ 05-05 14:08:30.999 26009:14745 D/         ]
                                                                                                 PPM: Focus finished in:  :738.404 ms :  1462471711004 ms
05-05 14:08:32.350 12503-12503/com.ionicframework.rcreditsmobile621273 D/CaptureActivityHandler: Got return scan result message
05-05 14:08:33.054 12503-12503/com.ionicframework.rcreditsmobile621273 D/CordovaInterfaceImpl: Sending activity result to plugin
05-05 14:08:33.616 12503-13383/com.ionicframework.rcreditsmobile621273 D/dalvikvm: GC_FOR_ALLOC freed 2117K, 25% free 10424K/13816K, paused 78ms, total 80ms
05-05 14:08:34.179 12503-12503/com.ionicframework.rcreditsmobile621273 I/chromium: [INFO:CONSOLE(0)] "XMLHttpRequest cannot load https://stage-new.rcredits.org/pos. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.2.2:8100' is therefore not allowed access.", source: http://192.168.2.2:8100/#/app/login (0)
05-05 14:08:34.186 12503-12503/com.ionicframework.rcreditsmobile621273 I/chromium: [INFO:CONSOLE(28)] "", source: http://192.168.2.2:8100/ (28)
05-05 14:08:34.194 12503-12503/com.ionicframework.rcreditsmobile621273 I/chromium: [INFO:CONSOLE(28)] "Translation for undefined doesn't exist", source: http://192.168.2.2:8100/ (28)
05-05 14:08:34.202 12503-12503/com.ionicframework.rcreditsmobile621273 I/chromium: [INFO:CONSOLE(28)] "Translation for  doesn't exist", source: http://192.168.2.2:8100/ (28)
05-05 14:08:34.233 12503-12503/com.ionicframework.rcreditsmobile621273 I/chromium: [INFO:CONSOLE(28)] "Translation for undefined doesn't exist", source: http://192.168.2.2:8100/ (28)
05-05 14:08:34.233 12503-12503/com.ionicframework.rcreditsmobile621273 I/chromium: [INFO:CONSOLE(28)] "Translation for  doesn't exist", source: http://192.168.2.2:8100/ (28)

And in the console:

1     649155   error    Unable to load user from Storage
2     652928   error    No offline transactions
3     652931   error    No offline transactions
0     697866   error    Unable to load user from Storage
1     702430   error    No offline transactions
2     702436   error    No offline transactions
3     714186   error
4     714199   warn     Translation for undefined doesn't exist
5     714204   warn     Translation for  doesn't exist
6     714233   warn     Translation for undefined doesn't exist
7     714234   warn     Translation for  doesn't exist

Do you have any idea why I am getting these? I am assuming it must have something to do with a configuration somewhere but where, I am not sure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.