{"id":32424811,"url":"https://github.com/bentrm/lis","last_synced_at":"2025-10-25T19:55:22.758Z","repository":{"id":38891835,"uuid":"117534498","full_name":"bentrm/lis","owner":"bentrm","description":"Literature Information System","archived":false,"fork":false,"pushed_at":"2023-01-01T13:17:11.000Z","size":6925,"stargazers_count":2,"open_issues_count":28,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-08-12T14:11:21.059Z","etag":null,"topics":["education","information-systems","literature"],"latest_commit_sha":null,"homepage":"https://www.lis-map.eu/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bentrm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-15T11:01:24.000Z","updated_at":"2023-08-12T14:11:21.060Z","dependencies_parsed_at":"2023-01-31T22:46:10.967Z","dependency_job_id":null,"html_url":"https://github.com/bentrm/lis","commit_stats":null,"previous_names":[],"tags_count":45,"template":null,"template_full_name":null,"purl":"pkg:github/bentrm/lis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bentrm%2Flis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bentrm%2Flis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bentrm%2Flis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bentrm%2Flis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bentrm","download_url":"https://codeload.github.com/bentrm/lis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bentrm%2Flis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281012083,"owners_count":26429437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["education","information-systems","literature"],"created_at":"2025-10-25T19:55:05.498Z","updated_at":"2025-10-25T19:55:22.754Z","avatar_url":"https://github.com/bentrm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project structure\n\n* `app` - Frontend Node/Webpack application based on Vue.js\n* `backups` - default location for backup files\n* `bin` - includes backup and restore scripts\n* `cms` - the Django/Wagtail CMS backend\n* `static` - http server component to serve static media files\n\n# Run application as a Docker Compose Stack in production\n\nPlease be aware, in production proxy server negotiating SSL encryption is needed. \nAn example configuration is included in the `docs` directory.\n\n## Environment\n\nThe file `.env.example` includes example environmental variables. Copy the file as `.env` as it will\nbe considered by `docker-compose` during application startup.\n\n# Init application\n\n## 1. Prepare database:\n`````\ndocker-compose -f docker-compose.yml -f docker-compose.dev.yml up db\n`````\n\nWait until database is created and all extensions are installed. Last line should look like:\n\n``````\ndb_1      | Loading PostGIS extensions into django\ndb_1      | CREATE EXTENSION\n\n...\n\nPostgreSQL init process complete; ready for start up.\ndb_1      |\ndb_1      | 2021-08-07 16:22:57.109 UTC [1] LOG:  starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit\ndb_1      | 2021-08-07 16:22:57.112 UTC [1] LOG:  listening on IPv4 address \"0.0.0.0\", port 5432\ndb_1      | 2021-08-07 16:22:57.112 UTC [1] LOG:  listening on IPv6 address \"::\", port 5432\ndb_1      | 2021-08-07 16:22:57.114 UTC [1] LOG:  listening on Unix socket \"/var/run/postgresql/.s.PGSQL.5432\"\ndb_1      | 2021-08-07 16:22:57.126 UTC [271] LOG:  database system was shut down at 2021-08-07 16:22:56 UTC\ndb_1      | 2021-08-07 16:22:57.139 UTC [1] LOG:  database system is ready to accept connections\n``````\n\n## 2. IMPORTANT QUICKFIX\n\nBefore continuing comment out the following line in cms/src/lis/urls.py \nONLY during initial setup:\n\n````` python\nurlpatterns += i18n_patterns(\n    path('api/', include('api.urls')) # \u003c\u003c\u003c bug triggers database queries during migration\n)\n`````\n\nRevert this change before running the application.\n\n## 3. Run Migrations \n\nWith the database still running, init database schema running Django migrations in a new terminal window:\n`````\n$ docker-compose -f docker-compose.yml -f docker-compose.dev.yml run cms python manage.py migrate\n`````\n\n4. Create superuser \n\nThis user will be the initial superuser to log in to the CMS interface.\n\n`````\n$ docker-compose -f docker-compose.yml -f docker-compose.dev.yml run cms python manage.py createsuperuser\n`````\n\n5. Init homepage\n\nConnect to the database via psql client:\n\n`````\n$ docker-compose -f docker-compose.yml -f docker-compose.dev.yml exec db psql -U django\n`````\n\nAnd run the following commands to update the default Wagtail homepage to be compatible with the LIS schema:\n````sql\nupdate wagtailcore_page \nset content_type_id = (\n\t\tselect id from django_content_type \n\t\twhere  app_label = 'cms' and model = 'homepage'\n\t),\n\tslug = 'homepage'\nwhere id = 2;\n\ninsert into cms_i18npage (page_ptr_id, title_de, title_cs, draft_title_de, draft_title_cs, editor, original_language, temporary_redirect)\nvalues (2, 'Homepage',\t'Homepage',\t'Homepage',\t'Homepage',\t'root', 'de', '');\n\ninsert into cms__content_pages (i18npage_ptr_id, body, body_de, body_cs)\nvalues (2, '[]', '[]', '[]');\n\ninsert into cms_homepage values (2);\n`````\n\nAlso, there seems to be a bug in django-modelcluster when renaming models that are\nlinked via ParentalManyToMany fields. Update the reference column manually for now:\n\n`````sql\nalter table cms_memorial_site_tag_memorial_type\nrename column locationtypetag_id to memorialtag_id;\n`````\n\n6. Finish up\n\nShut down all running stack components and revert the quickfix.\n`````\n$ docker-compose down\n`````\n\n# Running the application stack\n\nStart application for development:\n`````\n$ docker-compose -f docker-compose.yml -f docker-compose.dev.yml up\n`````\n\nStart application for production (creates static build of app component):\n`````\n$ docker-compose up --build\n`````\n\n# Backup \u0026 restore\n\n``````\n# Backup from running containers\n$ bin/backup.sh backups/ .env\n\n# restore (timestamp of backup files in backups/ directory)\n# !deletes existing data!\n$ bin/restore.sh backups/ 2021-08-07-12-43-43 .env\n``````\n\n# Troubleshooting\n\nPrune renditions\n`````\n$ docker-compose exec cms python manage.py prunerenditions\n`````\n\nFix Wagtail page tree\n`````\n$ docker-compose exec cms python manage.py fixtree\n`````\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbentrm%2Flis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbentrm%2Flis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbentrm%2Flis/lists"}