TaiBIF (Taiwan Biodiversity Information Facility)
To install project, please follow these steps:
prepare the environment: mv dotenv.example .env
prepare the initial sql file to ./postgres
Development:
docker-compose -f docker-compose.yml -f docker-compose-develop.yml build
docker-compose -f docker-compose.yml -f docker-compose-develop.yml up -d
Include:
- search.{dev|min}.js (for data-related page)
- datatable.{dev|min}.js (for dataset status page)
Frontend code (react js) is in folder frontend-data
will be build and deploy by docker & docker-compose up process.
If develop in localhost:
- Install nvm
- use lts (node v.18)
$ nvm install lts/hydrogen
$ nvm use --lts
$ yarn install
$ yarn dev
$ docker-compose exec web bash
$ python manage.py makemessages -l en
$ python manage.py compilemessages -l en
# In project repo directory
$ docker-compose exec solr bash
# In solr docker
$ bin/solr create_core -c taibif_occurrence
$ exit
# Re-enter solr docker
$ docker-compose exec -u 0 solr bash
$ cp /workspace/conf-taibif-occur/taibif_occurrence/managed-schema /var/solr/data/taibif_occurrence/conf/
$ cp /workspace/conf-taibif-occur/taibif_occurrence/solrconfig.xml /var/solr/data/taibif_occurrence/conf/
$ cp /workspace/jts-core-1.18.1.jar /opt/solr-8.11.1/server/solr-webapp/webapp/WEB-INF/lib
$ exit
# In project repo directory
$ docker-compose restart solr
$ docker-compose exec solr bash
$ post -c taibif_occurrence /workspace/conf-taibif-occur/taibif_occurrence/file.csv
Solr Source data fram TaiBIF IPT.
gbif/ipt: GBIF Integrated Publishing Toolkit (IPT): The Integrated Publishing Toolkit (IPT) is a free, open source software tool used to publish and share biodiversity datasets through the GBIF network.
This project uses the following license: MIT license