A prototype API for accessing alignment data. Built with Django. Serves up data from Clear-Bible/Alignments.
In the client/
directory...
npm install
npm run dev
...
In the server/
directory...
poetry install
createdb alignmentapi
export DATABASE_URL=postgres://localhost/alignmentapi
poetry run ./manage.py migrate
runtime ~20 mins
poetry run ./manage.py shell < alignment_api/pipelines/load_alignments.py
poetry 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/