Skip to content
Questionnaire mobile application for RADAR-base
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Chore(bot): template file for release drafter Jan 9, 2019
resources
scripts feat(analytics): Add Firebase Analytics Feb 6, 2019
src
.editorconfig
.gitignore add enc files Nov 6, 2018
.io-config.json
.prettierignore fix prettier settings Sep 18, 2018
.prettierrc
.stylelintrc
.travis.yml fix: travis build Mar 1, 2019
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Jun 29, 2017
CONTRIBUTING.md Create CONTRIBUTING.md Jun 29, 2017
LICENSE
README.md
config.xml
ionic.config.json
package.json
postcss.config.js sort imports Sep 18, 2018
publishing_script.sh
secrets.tar.enc update travis with fastlane Nov 6, 2018
tsconfig.json
tslint.json
yarn.lock Merge branch 'bug/completion-window' into dependabot/npm_and_yarn/sta… Feb 14, 2019

README.md

RADAR-Questionnaire

bitHound Dependencies bitHound Dev Dependencies

Hybrid mobile application to actively capture data for the RADAR-CNS Platform.

Note

We use the Ionic framework, which is built with Angular and wraps Apache Cordova.

Install

First install Node.js and Yarn.

Globally install ionic and cordova:

$ yarn global add ionic cordova

In the project folder run yarn to install dependencies:

$ yarn

Cordova provides a simple command to install the plugins and platforms set in package.json or config.xml.

$ cordova prepare

To run the application in the browser use:

$ ionic serve

Fix CSS

Use the following command to sort, format and fix common css problems:

$ yarn fix:css

Android

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 cordova platform add android

Run the app in an Android device:

$ ionic cordova run android

Run the app in an Android emulator:

$ ionic cordova emulate android

Other Config Options

Create a file in src/assets/data/secret.ts and add the following configuration -

// The End point where the protocols for the questionnaires scheduling is hosted
export const DefaultProtocolEndPointExport: string = 'https://raw.githubusercontent.com/RADAR-base/RADAR-aRMT-protocols/master/'

// The client credentials for OAuth authorisation with the Management Portal
export const DefaultSourceProducerAndSecretExport: string = '<aRMT-client>:<aRMT-secret>'

Also if using FCM pull notifications instead of the local ones, please specify the FCM sender id (as mentioned in FCM settings) in src/assets/data/defaultConfig.ts

export const FCMPluginProjectSenderId: string = 'your-sender-id'

Also change the Default endpoint of where the RADAR-base platform is hosted.

export const DefaultEndPoint: string = 'https://your-hosted-radar-platform-base-url/'
You can’t perform that action at this time.