"Genealogical Queries" is a collection of tools to apply the CBGM. It consists of a Vue-based interface, a Flask-based backend, a postgres database, many Python scripts and other 3rd party tools and libraries.
- What is the Coherence-Based Genealogical Method?
- How does the Genealogical Queries Tool work?
- Where is the CBGM used?
Live server: http://ntg.uni-muenster.de/
Documentation at: https://scdh.github.io/intf-cbgm/
Currently it is possible to run "Genealogical Queries" on a self-hosted server.
But it is much easier to start via Docker.
Current data model: Acts of the Apostles Phase 4
- Install Docker and if necessary docker-compose (under Linux/Mac)
- Save the file docker-compose.yml in a folder of your choice
- Execute the command [docker-compose up
- Call up the address
http://localhost:5000
in your browser - Quit "Genealogical Queries" via
docker-compose stop
, at the next startdocker-compose run
Note: All Docker Images can be found at
hub.docker.com | intf-cbgm-app-server
hub.docker.com | intf-cbgm-db-server
- Docker
- Docker-Compose
- npm 6.x
Install npm under Debian/Ubuntu:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
Tested with Node v14.15.0 and npm v6.14.8.
Not tested with yarn.
Note: The package.json
must explicitly state "bootstrap-vue": "2.17.0"
.
All versions 2.17+ are breaking because they do not contain "utils/key-codes" anymore.
- Get node modules for webpack:
cd client
andnpm install
. - Execute Makefile:
cd ../docker
andmake
. - The Makefile in Docker calls another Makefile under client
- If no errors occurred start with
docker-compose up
. At the first call Postgres will import the dump. - Use
docker-compose run
on the second start
To access postgres inside the container "ntg-db-server" directly, the port must be open.
In docker-compose.yml
add expose and ports:
services:
ntg-db-server:
image: intf/ntg-db-server
volumes:
- pgdata:/var/lib/postgresql
expose:
- 5432
ports:
- 5432:5432
The easiest way to do this is
docker exec -it <container-id> bash
and do
su postgres
psql
CREATE USER myUserName WITH PASSWORD 'topsecret'
OLD USER myUserName WITH SUPERUSER;
to create a SUPERUSER. Then connect via DataGrip or any another application to postgresql://localhost:5432/acts_ph4
For example, to switch from Acts Phase 4 to another phase, do the following:
- Place a suitable dump under
docker/backup
. The exact structure is quite complex and knowledge of the NTVMR (New Testament Virtual Manuscript Room) ist necessary. Feel free to contact us for help. - Adjust the database name under
/docker/docker-entrypoint-initdb.d
in all files, for example "acts_ph4" - Adapt the config to the database name under
/docker/docker-entrypoint.sh
- Create the appropriate .conf under
/docker
. The best way to do this is to copy the existing file.
Note: In property "backup" in docker/Makefile
you may also have to adjust the database name.