https://github.com/atlasoflivingaustralia/ecodata-client-plugin
Utilities and form rendering for clients of the ecodata services
https://github.com/atlasoflivingaustralia/ecodata-client-plugin
ala-product-biocollect
Last synced: 19 days ago
JSON representation
Utilities and form rendering for clients of the ecodata services
- Host: GitHub
- URL: https://github.com/atlasoflivingaustralia/ecodata-client-plugin
- Owner: AtlasOfLivingAustralia
- License: mpl-2.0
- Created: 2017-07-03T23:18:27.000Z (almost 8 years ago)
- Default Branch: dev
- Last Pushed: 2025-05-02T10:54:17.000Z (30 days ago)
- Last Synced: 2025-05-02T11:47:16.707Z (29 days ago)
- Topics: ala-product-biocollect
- Language: JavaScript
- Size: 5.98 MB
- Stars: 0
- Watchers: 12
- Forks: 6
- Open Issues: 46
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Ecodata Client Plugin
### [](https://travis-ci.com/AtlasOfLivingAustralia/ecodata-client-plugin)
### About
The ecodata client plugin is a grails plugin used to generate data entry forms from a metadata definition. It is used by the [MERIT](https://github.com/AtlasOfLivingAustralia/fieldcapture) and [BioCollect](https://github.com/AtlasOfLivingAustralia/fieldcapture) applications.### Technologies
* Grails framework
* Knockout JS
* Bootstrap 4.6### Setup
* Clone the repository to your development machine.* Install npm and nodejs (see https://www.npmjs.com/get-npm)
* Install the node dependencies for MERIT. Note these are currently only used for testing.```
npm install
npm install -g karma
```
* Run the npm script to package the turf geojson libraries and copy them to the grails-app/assets/javascripts folder.
```
npm run-script package-turf
```
## Testing
* To run the grails unit tests, use:
```
grails test-app
```
Webdrivers for chrome and phantomjs for use by the functional tests are installed by npm, so ensure you have run npm install before running the tests. When running locally it is convenient to supply just one GEB environment. e.g. -Dgeb.env=chrome* Javascript user tests are run using npm.
```
npm test
```
To run the javascript tests in debug mode use:
```
npm run-script debug
```## Running
The ecodata client plugin application includes a simple servlet that reads a data model and displays a form generated from that model.```
grails run-app
```