Hybrid mobile application to actively capture data for the RADAR-CNS Platform.
We use the Ionic 2 framework, which is built with Angular 2 and wraps Apache Cordova.
First install Node.js and Yarn.
Globally install ionic and cordova:
$ npm install -g ionic cordova
In the project folder run yarn
to install dependencies:
$ yarn
To run the application in the browser use:
$ ionic serve
To add the Android platform. You need to have the Android SDK pre installed. This step also adds the plugins listed in config.xml
to the project.
$ ionic platform add android
Run the app in an Android device:
$ ionic run android
Run the app in an Android emulator:
$ ionic emulate android
Ionic CLI provides a simple command to reset and install the state set in package.json
.
This command removes and reinstalls all platforms and plugins listed.
$ ionic state reset
You can also save the current state to package.json
.
$ ionic state save