From de6cffb304e7434414ef7a9808cd0b949fa26a7f Mon Sep 17 00:00:00 2001 From: Gede Primahadi Wijaya Rajeg Date: Wed, 14 Jun 2023 06:35:10 +0800 Subject: [PATCH] Add the bash code to run the clld app testing the CLDF dataset in the terminal. --- code/run-clld-app.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 code/run-clld-app.sh diff --git a/code/run-clld-app.sh b/code/run-clld-app.sh new file mode 100644 index 0000000..34346ba --- /dev/null +++ b/code/run-clld-app.sh @@ -0,0 +1,31 @@ +# Testing to serve the Holle's New Basic List with clld app +## my personal note +## assumption: +### - glottolog data has been downloaded inside the cldf_project directory +### - Python virtual environment has been created in the cldf_project directory +### - clld package has been installed in the myenv +### - cldf Holle List (https://github.com/engganolang/digitised-holle-list) has been ready + +cd /Users/Primahadi/Documents/cldf_project + +# activate the virtual environment +source myenv/bin/activate + +# remove the already existing hollelist directory to re-run a new app +rm -r hollelist + +# create the app infrastructure, with Wordlist module +clld create hollelist cldf_module=Wordlist + +# go to the app directory +cd hollelist + +# install requirement +pip install -r requirements.txt + +# create the database for the Holle List CLDF +## stored in my computer: /Users/Primahadi/Documents/enggano-AHRC/holle-list-2023-05-23/cldf/cldf-metadata.json +clld initdb --glottolog ../glottolog-glottolog-d9da5e2/ --cldf /Users/Primahadi/Documents/enggano-AHRC/holle-list-2023-05-23/cldf/cldf-metadata.json development.ini + +# check the app +pserve development.ini \ No newline at end of file