mobile-xteros

mobile-alternate-drugs

Mobile app

Technicals

  • Target Platform: Android & iOS
  • Framework: Ionic (with sidemenu template)
  • phonegap: build mobile application and provide plugins
  • Communicate with server: $http (angularjs)
  • Localstorage: window.localStorage (phonegap)
    save necessary information within mobile.
    SQLite will be used if needed.
  • font awesome : various icons for better look and feel

Building

Install ionic

$ npm install -g cordova ionic

Add platform and build

$ cd mobile-xteros
$ ionic platform add ios
$ ionic build ios

Add plugins

$ ionic plugin add com.ionic.keyboard
$ ionic plugin add cordova-plugin-device
$ ionic plugin add cordova-plugin-console
$ ionic plugin add cordova-plugin-inappbrowser
$ ionic plugin add cordova-plugin-splashscreen
$ ionic plugin add cordova-plugin-whitelist

Plugins for social login

 Facebook [see plugin]

Installing this plugin directly from Cordova Registry currently breaks the symlinks in FacebookSDK.framework CB-6092. Easiest solution for now is to just git clone this project and install it with Cordova CLI using the local clone.

$ git clone https://github.com/Wizcorp/phonegap-facebook-plugin.git
$ cordova -d plugin add /path/to/cloned/phonegap-facebook-plugin --variable APP_ID="com.xteros.mobilexteros546693" --variable APP_NAME="mobile-xteros"

 Google Plus [see plugin]

$ cordova plugin add nl.x-services.plugins.googleplus
$ cordova prepare

Testing

Karma and Jasmine are used to do the Unit Testing.

install needed npm packages

npm install

The Karma Command Line Integerface may be needed

npm install -g karma-cli

start testing

gulp test