makinacorpus/phenology

Name: phenology

Owner: Makina Corpus

Description: A phenology survey mobile app

Created: 2014-07-09 16:32:17.0

Updated: 2017-12-03 16:13:54.0

Pushed: 2015-10-01 13:30:08.0

Homepage: null

Size: 9929

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Phenology

Install
do easy_install nodeenv
deenv ./nenv
 nenv
urce bin/activate
m config set cache ./.npm
m install -g cordova ionic
t clone ....
 phenology
m install gulp
m install
lp install
Protractor Webdriver

You have to update and start a standalone selenium server. Please read the offical instructions.

You can also ensure that the driver is installed by using the webdriver_update task. Have a look at the example folder.

Additional tip to install a webdriver:

ode_modules/protractor/bin/webdriver-manager update

You have 2 options to start the selenium server.

The first one is to let Protractor handle it automatically, including stopping it once your tests are done.
To do that, simply point to the selenium jar in the protractor config file (you will need to update the version number accordingly) instead of the address:

 The file path to the selenium server jar ()
leniumServerJar: './node_modules/protractor/selenium/selenium-server-standalone-2.39.0.jar',
 seleniumAddress: 'http://localhost:4444/wd/hub',

The second option is to let the gulp task handle it with the built-in webdriver snippet.
If you decide to start it that way, the task will keep running indefintely.

webdriver_standalone = require("gulp-protractor").webdriver_standalone;
.task('webdriver_standalone', webdriver_standalone);
Before doing anything
 nenv
urce bin/activate
 phenology
Install Android SDK

See http://doc.ubuntu-fr.org/android#installation_du_sdk_android

Add a platform
nic platform add android
Add plugin to manipulate/transfert files
rdova plugin add org.apache.cordova.file@1.2.0
rdova plugin add org.apache.cordova.file-transfer@0.4.4
Add zip plugin
rdova plugin add https://github.com/MobileChromeApps/zip.git
Add white list plugin
rdova plugin add cordova-plugin-whitelist
Build and run on a platform
nic build android
nic emulate android
Run in Chrome for testing
nic serve

To get SASS files automatically compiled:

lp watch
Run unit tests
lp test
Run functional tests
lp e2e

Build Status


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.