The scaife-stack project demonstrates an implementation of the Scaife Viewer frontend and backend. The Scaife Viewer dev team hopes to continue to evolve this repository to serve as a template for sites that wish to utilize the Scaife Viewer.
The following Dockerfiles are configured to build environments / install dependencies for the frontend and backend:
frontend-dev.dockerfile
backend-dev.dockerfile
docker-compose.yml
and docker-compose.override.yml
are set up to mount the appropriate component to the appropriate
service:
atlas
service runs the backend, and is addressable via http://localhost:8000/graphql/viewer
service runs the frontend, and is addressable via http://localhost:8080/To bring up the stack:
docker-compose up
To rebuild images used by the stack:
docker-compose up --build
(you may also use docker-compose up -d
to run the stack in the background)
To bring down the stack and remove data volumes:
docker-compose down --rmi all -v
To run a one-off container for the atlas
service:
docker-compose run atlas sh
To connect to the running container for the atlas
service:
docker-compose exec atlas sh
By design, the ATLAS data ingestion process is designed as an atomic process:
SV_ATLAS_DATA_DIR
directoryIf a new annotation was to be added into ATLAS, the entire SQLite database would be destroyed and all data re-ingested. Please note that the Scaife Viewer dev team does plan on supporting incremental updates in the future.
For the translation-alignments-stack
, load data via
docker-compose exec atlas python manage.py prepare_atlas_db
For convenience, heroku.yml
and heroku.dockerfile
can be used to deploy the stack as a Heroku application.
main
branch.heroku.dockerfile
is used to build the frontend and backend into a single image. Frontend static assets are served via Django and Whitenoise at the application root (/
). See Building docker images with heroku.yml for more information.Customize app.json
and heroku.yml
as-needed for projects derived from this repo.
Review Apps have been set up for Beyond Translation.
To have a review app created for a pull request:
VUE_APP_ABOUT_URL
and VUE_APP_ABOUT_TEXT
to add a link to an about page