-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the bash script to test the CLDF data set with the clld app.
- Loading branch information
1 parent
248d119
commit fe00a6d
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Testing to serve the Enggano word list of 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 Enggano's Holle List (https://github.com/engganolang/holle-list-enggano-1895) 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 engganoholle | ||
|
||
# create the app infrastructure, with Wordlist module | ||
clld create engganoholle cldf_module=Wordlist | ||
|
||
# go to the app directory | ||
cd engganoholle | ||
|
||
# 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/enggano-holle-list-2023-03-27/cldf/cldf-metadata.json development.ini | ||
|
||
# check the app | ||
pserve development.ini | ||
|
||
# go back to the Enggano’s Holle List directory | ||
cd /Users/Primahadi/Documents/enggano-AHRC/enggano-holle-list-2023-03-27 |