[Books in English Parishes][https://dhil.lib.sfu.ca/bep] (affectionately known as BEP) is a Python application written using the [Django][https://www.djangoproject.com/] framework. It is a digital tool for collecting data and metadata about books used in English parishes.
docker compose up -d --build
Frontend will be available at http://localhost:8080/
Admin Interface will be available at http://localhost:8080/admin/
# Bootstrap
docker exec -it bep_app python manage.py loaddata admin_interface_theme_bootstrap.json
# Django
docker exec -it bep_app python manage.py loaddata admin_interface_theme_django.json
# Foundation
docker exec -it bep_app python manage.py loaddata admin_interface_theme_foundation.json
# U.S. Web Design Standards
docker exec -it bep_app python manage.py loaddata admin_interface_theme_uswds.json
docker exec -it bep_app python manage.py createsuperuser
Enter username
, email
, and password
as prompted
example:
docker exec -it bep_app python manage.py createsuperuser --username="admin" --email="dhil@sfu.ca"
docker compose up -d
docker compose down
docker compose up -d --build
docker logs -f bep_app
docker logs -f bep_db
docker logs -f bep_mail
http://localhost:8080/
Command line:
docker exec -it bep_db mysql -u bep -ppassword bep
Through a database management tool:
- Host:
127.0.0.1
- Port:
15432
- Username:
bep
- Password:
password
http://localhost:8025/
Migrate up to latest
docker exec -it bep_app python manage.py migrate
Create new migrations
docker exec -it bep_app python manage.py makemigrations
# add new package
docker exec -it bep_vite yarn add [package]
# update a package
docker exec -it bep_vite yarn upgrade [package]
# update all packages
docker exec -it bep_vite yarn upgrade
After you update a dependency make sure to rebuild the images
docker compose down
docker compose up -d
Manage python dependencies in requirements.txt
All packages should be locked to a specific version number if possible (Ex
Django==4.2.7
) Some special packages cannot be locked and should be noted as such (Expsycopg[binary]
)
After making changes, you need to run pip or rebuild the image
docker exec -it bep_app pip install -r requirements.txt
# or
docker compose up -d --build
Edit version number in requirements.txt
with new locked version number
Ex
pip==24.0.0
docker exec -it bep_app pip install -r requirements.txt
# or
docker compose up -d --build