First, install Node.js. Then install the command-line tools:
$ npm install -g cordova ionic
Follow the Android and iOS platform guides to install required platform dependencies.
Note: Currently olny the Android platform is supported.$ npm install -g bower
Clone source code:
$ git clone https://github.com/vtsironis/DisasterHub.git
Change current directory to DisaterHub's root directory:
$ cd DisasterHub
Install dependencies:
$ bower install
You can run DisasterHub in your PC using localhost and a Web browser:
$ ionic serve
Congratulations! DisasterHub should launch in the Web browser of your PC right now in the address http://localhost:8100/!!!
Note 1: Please make sure that DisasterHub is running in port 8100 of localhost (i.e. http://localhost:8100/). Note 2: DisasterHub is tested in Mozilla Firefox and Google Chrome, so better use one of these browsers.Restore DisasterHub plugins and platforms:
$ ionic state restoreNote: Currently olny the Android platform is supported.
After restoring the DisasterHub plugins and platforms you have two options.
Option 1
Build the app file in your PC and then use it to install DisasterHub in your mobile device.
Build DisasterHub in your PC:
$ ionic build
In the case of the Android platform an APK file (e.g. android-armv7-debug.apk) will be created under the folder $PATH_TO_DISASTERHUB/DisasterHub/platforms/android/build/outputs/apk. You can use this file to install the DisasterHub app in your android device.
Option 2
Build, install and run DisasterHub directly in your mobile device. However, in order to do that you must first enable USB debugging in your mobile device (view more information) and then connect it to your PC via usb.
Run DisasterHub in your mobile device:
$ ionic run
Congratulations! DisasterHub should launch in your mobile device right now!!!