Backend stuff for barebonesbible.com, including:
- Scripts to populate the dynamo-db table
- The API code
Do the following:
- Create a virtual environment
python -m venv .venv
- Activate it with
source .venv/bin/activate
- Upgrade pip with
pip install --upgrade pip
- Install requirements with
pip install -r requirements.txt
- Set environment variables for
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
andAWS_DEFAULT_REGION
- for access to DynamoDB - Run the following:
python b3 stage enasv,enkjv,enweb,enwmb
python b3 stage hewlc
python b3 stage grtisch
- Upload to dynamo db using (can take 10-30 mins for all bibles)
python b3 upload-bibles --filt=all
python b3 upload-search
- Build and package lambda code using:
python b3 build-api
- Upload resulting
./build/api.zip
to AWS lambda and deploy