An application that enables you to record ozone damage to plants. You can contribute your sightings with GPS acquired coordinates, descriptions and other information, thus providing scientists with important information that contributes to research, planning and education.
This project is associated with the International Cooperative Programme on Effects of Air Pollution on Natural Vegetation and Crops.
The application is derived from the iRecord App and depends upon the Indicia online recording system.
App configuration is hosted in multiple places. Note: config changes should be done before building the code.
- Main configuration in
src/common/config.js
. - App version/build is set in the package.json
- Cordova config is
other/cordova/cordova.xml
- Environmental variables like INDICIA_API_KEY can optionally be placed in
.env
file
-
Install NodeJS ( > 4.5)
-
Get a copy of the code by running:
git clone git://github.com/NERC-CEH/ozone-app.git
- Enter the
ozone-app
directory and install the npm build dependencies:
cd ozone-app
npm install
If you are building for the web platform only:
Production
npm run build
Development
npm run build:dev
This will create a dist
folder with the app code and its dependencies.
- Express framework is provided for a quick launch of a web server.
npm start
- Open the app on a browser http://localhost:8000
Building a cordova application requires cordova 7.1.0
- Initialize the project:
npm run build:cordova
-
This will create a
dist/cordova
folder with the cordova project -
(optionally) Update Cordova project with new web pages if you have initialized but have made some source code changes (ie. only replaces the www folder contents)
npm run build:cordova:update
- Android build:
npm run build:cordova:android
This will create the file main.apk in the folder dist/cordova/dist which you can upload to google play.
- iOS build open
dist/cordova/platforms/ios/iRecord App.xcodeproj
in XCode
For more shortcuts please see the package.json
and dig in the config/build/aliases.js
file that is used by grunt runner.
Code copyright 2018 Centre for Ecology & Hydrology. Code released under the GNU GPL v3 license.