unfoldingword/data-tracking-importer
83
A bunch of import scripts to read data from SIL API's into our DB
These scripts are wrapped into a Docker container, so it's easiest to just use that
Use the following settings, replace <placeholders>
with actual values
# App settings
STAGE=prod
# Progress Bible
PB_BASE_URL=<url>
PB_KEY=<key>
PB_SECRET=<secret>
# Joshua Project
JP_BASE_URL=<url>
JP_KEY=<key>
# TrackingDB
TDB_HOST=<mysql_host_name>
TDB_USER=<username>
TDB_PASSWORD=<password>
TDB_DB=<database_name>
docker pull unfoldingword/data-tracking-import
docker run --rm --env-file .env -it unfoldingword/data_tracking_importer python progress_bible.py
First, clone this repo. Then, inside the repo directory:
Setting up a virtual environment keeps all the requirements and libraries for this project in one place.
python3 -m ./venv
source ./venv/bin/activate
pip install -r requirements.txt
See above
python3 ./progress_bible.py
When you're done, you can deactivate your virtual environment
deactivate
docker pull unfoldingword/data-tracking-importer