Skip to content

Latest commit

 

History

History
80 lines (55 loc) · 3.14 KB

README.md

File metadata and controls

80 lines (55 loc) · 3.14 KB

translationDatabase

Build Status Coverage Status

Goals

The goals for translationDatabase are to manage and track data for languages and the progress of getting unrestricted biblical content into every language.

For more information on the unfoldingWord project, see the About page.

Data Sources

A lot of the sources of data are pull into and managed as repo as part of the Debian project called simply, ISO Codes.

In Use

Other Potential Sources

Getting Started

To setup a new working environment of this project, several items are needed:

  • Python (consult the requirements.txt for specific libraries/packages)
  • Redis
  • Postgres
  • Node

Building Static Media

npm install
npm run watch     # run a watcher on the static folder
npm run build     # builds static and exits
npm run buildprod # builds for production (uglify/minification)

Initialize the Database

After installing requirements (via pip) within your environment or virtualenv:

  • python manage.py migrate
  • python manage.py loaddata sites
  • python manage.py loaddata uw_network_seed
  • python manage.py loaddata uw_region_seed
  • python manage.py loaddata uw_title_seed
  • python manage.py loaddata uw_media_seed
  • python manage.py loaddata additional-languages
  • python manage.py reload_imports

At this point, the basic country and language datasets will be populated but without many optional fields or extra data.

Updating the /exports/langnames.json and /exports/langnames_short.json endpoints

When languages are added or updated, run this command to update the data locally:

python manage.py rebuild_langnames

Switch to the master branch and run this command to update the data on the server:

ec run web python manage.py rebuild_langnames