Giter Site home page Giter Site logo

ozone-app's Introduction

Ozone App

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.

Configuration

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

Building

  • 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

Web app

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.

Running app locally

  • Express framework is provided for a quick launch of a web server.
npm start

Cordova app

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

Shortcuts

For more shortcuts please see the package.json and dig in the config/build/aliases.js file that is used by grunt runner.

Copyright and license

Code copyright 2018 Centre for Ecology & Hydrology. Code released under the GNU GPL v3 license.

ozone-app's People

Contributors

jimbacon avatar

Watchers

James Cloos avatar Jonathan Cooper avatar  avatar  avatar  avatar

ozone-app's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.