https://github.com/gher-uliege/divand-rest
REST API for DIVAnd
https://github.com/gher-uliege/divand-rest
api api-rest interpolation oceanography seadatacloud search spatial-analysis virtual-research-environment
Last synced: 2 months ago
JSON representation
REST API for DIVAnd
- Host: GitHub
- URL: https://github.com/gher-uliege/divand-rest
- Owner: gher-uliege
- License: gpl-2.0
- Created: 2018-02-26T10:24:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-26T21:00:54.000Z (about 5 years ago)
- Last Synced: 2025-02-05T10:12:34.753Z (4 months ago)
- Topics: api, api-rest, interpolation, oceanography, seadatacloud, search, spatial-analysis, virtual-research-environment
- Language: Julia
- Size: 83 KB
- Stars: 2
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/gher-ulg/DIVAnd-REST)
# Install with Docker
Deploy
```
docker pull abarth/divand_rest
docker run --detach --name=divand_rest_container -it -p 8002:8002 abarth/divand_rest
```Run `docker rm divand_rest_container` if the container already exists.
# Testing
The tool `jq` needs to be installed to parse JSON from the shell.
In Debian/Ubuntu, it can be installed by:```bash
sudo apt-get install jq
```The tests can be run with:
```
git clone https://github.com/gher-ulg/DIVAnd-REST.git
cd test
./test_bathymetry_curl.sh
./test_curl.sh # takes some time (~ minutes)
```The analysis takes about 4 GB of RAM with the sample data. The first excution takes about 3 minutes and following requests about 1 minute for the sample data.
Open http://localhost:8002/ in your web browser, for the web user interface.
# Debugging
Inspect logs with:
```
docker logs divand_rest_container
```# Developpement
*. start Julia and the DIVAnd server with `include(joinpath("src","DIVAndREST.jl"))` from the source directory
*. start nginx:
```
/usr/sbin/nginx -c /home/DIVAnd/DIVAnd-REST/utils/nginx.conf
```
* run the test scriptOpen with with username and password (see note.md)
http://localhost:8002/?u=...&p=...
# Containers deployed at CSC
Web user-interface:
https://diva.seadatacloud.ml/gui/1234/
Jupyterhub-interface:
https://diva.seadatacloud.ml/1234/tree?