A prototype API for accessing alignment data. Built with Django. Serves up data from Clear-Bible/Alignments.
In the client/ directory...
npm installnpm run dev...
In the server/ directory...
poetry installcreatedb alignmentapi
export DATABASE_URL=postgres://localhost/alignmentapipoetry run ./manage.py migrateruntime ~20 mins
poetry run ./manage.py shell < alignment_api/pipelines/load_alignments.pypoetry run ./manage.py runserver- Get access to the app on Heroku
- Authenticate using the Heroku CLI:
heroku login- Link the site to the Heroku app:
heroku git:remote -a clear-alignment-api- Deploy via Git push
git push heroku <branch-name>:main- Put site into maintenance mode
heroku maintenance:on- Reset the existing database
heroku pg:reset DATABASE --confirm clear-alignment-api- Push local database up to Heroku
heroku pg:push alignmentapi DATABASE- if using db auth locally...
heroku pg:push $(echo $DATABASE_URL) DATABASE- Take site out of maintenance mode
heroku maintenance:off- Browse to /alignment
open https://clear-alignment-api.herokuapp.com/alignment/