Skip to content

QCIF fork of ALA Biocollect

License

Notifications You must be signed in to change notification settings

qcif/biocollect

 
 

Repository files navigation

BioCollect

Build status

Master branch

Travis Build

Develop branch

Travis Build

About

This repo is a fork of the fieldcapture-hubs repo where the plugin has been promoted to become the host app. From the moment of creation of this repo BioCollect and Merit will go separate ways.

The resulting project has been significantly refactored. All the MERIT inherited server side code base is now under the package name au.org.ala.biocollect.merit. It would be convenient to organically remove all the code that we won't be using in biocollect.

New server side classes that are custom to BioCollect should be under the package name au.org.ala.biocollect

General Information

Technologies

  • Grails framework: 5.1.2
  • Java 8
  • Knockout JS
  • JQuery 3.4.1
  • Gradle

Development Setup

Running Grails4 version

Run BioCollect:

./gradlew bootRun

To run BioCollect with support for hot-reloading of changes to the ecodata-client-plugin & ala-map-plugin, clone the ecodata-client-plugin & ala-map-plugin repositories into the same parent folder as the BioCollect project. Run BioCollect with additional parameters:

./gradlew :bootRun -Dgrails.run.active=true -Pinplace=true

Note the leading colon before the bootRun task - this is required as when inplace=true gradle is configured in a multi-project build configuration.

Running Javascript automatic tests

  • Executing the tests requires node.js
  • It is recommended to install the Intellij node.js and karma plugins.
  • To install the test dependencies, run the following command in the repo root folder:
  npm install
  • After that you can run the test directly from Intellij by right-clicking on the karma.conf.js file.

Languages

  • Groovy 59.4%
  • JavaScript 30.4%
  • SCSS 7.4%
  • CSS 2.0%
  • HTML 0.5%
  • Shell 0.2%
  • Other 0.1%