An application to help language communities analyze their sound systems and build orthographies.
5.0K
This code forms part of the backend for the 'orthography-app' application. Data is to be stored in a MongoDB instance, and storage of media files will occur in an AWS S3 bucket.
Notice: this is a PoC, and thus everything is subject to change! Also, functionality is limited!
Prerequisites:
Using Docker compose is the easiest method. The provided compose template already starts a MongoDB server together with the OrthoApp backend application.
Make a copy of the provided compose-template.yaml file
cp compose-template.yaml compose.yaml
Within the file compose.yaml, change all the strings that are <bracketed> into actual values.
Start the container stack
docker compose up -d
Clone this repository
git clone https://github.com/unfoldingWord/orthography-app.git
Inside the repo, install the dependencies
cd ortography-app
npm install
Run the application
npm start
curl -d '{"name":"English", "code":"en"}' -H 'Content-Type: application/json' http://localhost:5000/api/language/add
Take note of the generated _id, that looks like 663b4d663937e0dd156aaef4
You can request the _id later on as well
curl -H 'Content-Type: application/json' http://localhost:5000/api/language/base
mkdir ortho-upload && cd ortho-upload
git clone -b upload-script [email protected]:unfoldingWord/orthography-app.git .
uploadImagesScript and modifyapiUrl. Probably, you only need to change the port into 5000.languageId. This should be the value that you took from step 1)images and fill it with the images that need to be uploadedmkdir images
cp /path/to/original-images/* images/
nodejs, if that is not installed yetapt install nodejs
npm install
node uploadImagesScript.js
Content type
Image
Digest
sha256:c47578e7e…
Size
91.7 MB
Last updated
about 2 years ago
docker pull unfoldingword/orthography-appPulls:
2
Sep 7 to Sep 13