{"id":13741042,"url":"https://github.com/paradisec-archive/nabu","last_synced_at":"2026-02-07T05:08:03.609Z","repository":{"id":62926610,"uuid":"2021394","full_name":"paradisec-archive/nabu","owner":"paradisec-archive","description":"nabu is a digital media item management system that provides a catalog of audio and video items, metadata for these items, and information about the workflow status of the items.","archived":false,"fork":false,"pushed_at":"2026-02-03T04:48:41.000Z","size":11754,"stargazers_count":19,"open_issues_count":45,"forks_count":8,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-02-03T11:43:55.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paradisec-archive.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2011-07-09T06:16:42.000Z","updated_at":"2026-02-03T04:48:29.000Z","dependencies_parsed_at":"2025-12-04T06:05:41.422Z","dependency_job_id":null,"html_url":"https://github.com/paradisec-archive/nabu","commit_stats":null,"previous_names":["paradisec-archive/nabu","nabu-catalog/nabu"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/paradisec-archive/nabu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradisec-archive%2Fnabu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradisec-archive%2Fnabu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradisec-archive%2Fnabu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradisec-archive%2Fnabu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paradisec-archive","download_url":"https://codeload.github.com/paradisec-archive/nabu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradisec-archive%2Fnabu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29186753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-03T04:00:54.828Z","updated_at":"2026-02-07T05:08:03.604Z","avatar_url":"https://github.com/paradisec-archive.png","language":"Ruby","funding_links":[],"categories":["Software"],"sub_categories":["Utilities"],"readme":"# Nabu Catalog\n\n## Setting up your dev environment\n\nUse direnv to add bin to your path\n\n```bash\nPATH_add bin\n```\n\nBring up the environment\n\n```bash\n# Build the base image\ndocker compose build\n\n# Install the gems\nnabu_run bundle\n\n# Bring up all the containers\ndocker compose up\n```\n\nThis brings up the following containers\n\n* app - the rails app\n* search - elasticsearch instance for search (dev + test)\n* db - mysql data base (dev + test)\n* s3 - s3 mock\n\nYou can then easily run all the standard commands by prefixing with ***nabu***\n\n``` bash\nnabu_run bundle install\nnabu_run bundle exec rake db:prepare\nnabu_run bundle exec guard # Test runner\n```\n\n## Production\n\nThe application is designed to be deployed with containers into an AWS account using CDK\n\nTo bootstrap a new account\n\n```bash\n# Setup an AWS account and credentials as per your preferred method and set the environment to use it\nAWS_PROFILE=nabu\nREGION=ap-southeast-2\nACCOUNT=$(aws sts get-caller-identity | jq -r .Account)\ncdk bootstrap aws://$ACCOUNT/$REGION\n```\n\nIf ECR complains about access\n\n```bash\nACCOUNT=$(AWS_PROFILE=nabu-stage aws sts get-caller-identity | jq -r .Account)\nAWS_PROFILE=nabu-stage aws ecr get-login-password --region ap-southeast-2 | docker login --username AWS --password-stdin $ACCOUNT.dkr.ecr.ap-southeast-2.amazonaws.com\n```\n\n## Deployment\n\nUse CDK to deploy new code via docker as well as any infrastructure changes\n\n``` bash\nbin/release stage\nbin/release prod\n```\n\nIf necessary:\n\n``` bash\nbin/aws/ecs_rake app deploy:migrate\nbin/aws/ecs_rake app searchkick:reindex\n```\n\n## Importing a production database into your development environment\n\n``` bash\nAWS_PROFILE=nabu-prod bin/aws/db_backup\nmysql -h 127.0.0.1 -u root nabu_devel \u003c ../schema.sql\npv ../data.sql | mysql -h 127.0.0.1 -u root nabu_devel\nnabu_run bin/rails db:environment:set RAILS_ENV=development\nnabu_run bin/rake db:migrate\nnabu_run bin/rake searchkick:reindex:all\n```\n\n# New Ethnologue data\n\nWe use the following source locations\n\n* \u003chttps://www.ethnologue.com/codes/\u003e\n* \u003chttps://iso639-3.sil.org/code_tables/download_tables\u003e\n\nRun the following rake task to import everything\n\n``` bash\nbundle exec rake import:ethnologue\n```\n\nThis will\n\n* Add new countries and update names\n* Update country names\n* Add new languages and update names (Only Living languages)\n* Add mappings of language to countries\n* All existing languages that are retired are marked as such, incl name change.\n* Where name changes occurred items in CollectionLanguage, ItemContentLanguage, ItemSubjectLanguage are updated with the replacement language code.\n* Where splits happened, a message is printed.\n\n# OAI-PMH\n\nOLAC available at:\n\n* \u003chttp://catalog.paradisec.org.au/oai/item\u003e\n\nThe feeds that OLAC harvests:\n\n* \u003chttp://catalog.paradisec.org.au/oai/item?verb=ListRecords\u0026metadataPrefix=olac\u003e\n* \u003chttp://catalog.paradisec.org.au/oai/item?verb=Identify\u003e (Archive identification)\n* \u003chttp://catalog.paradisec.org.au/oai/item?verb=ListMetadataFormats\u003e\n* \u003chttp://catalog.paradisec.org.au/oai/item?verb=ListIdentifiers\u0026metadataPrefix=olac\u003e\n\nIndividual item:\n\n* \u003chttp://catalog.paradisec.org.au/oai/item?verb=GetRecord\u0026identifier=oai:paradisec.org.au:AA1-002\u0026metadataPrefix=olac\u003e\n\nRIF-CS available at:\n\n* \u003chttp://catalog.paradisec.org.au/oai/collection\u003e\n\n  use resulting server on an OAI repository explorer:\n\n* \u003chttp://www.language-archives.org/register/register.php\u003e (OLAC)\n* \u003chttp://re.cs.uct.ac.za/\u003e\n* \u003chttp://oval.base-search.net/\u003e (OAI-PMH validator)\n* \u003chttp://validator.oaipmh.com/\u003e (OAI-PMH validator)\n* \u003chttp://repox.gulbenkian.pt/repox/jsp/testOAI-PMH.jsp\u003e (test protocol)\n\n  URLs to test:\n\n* [http://localhost:3000/oai/collection?verb=Identify\n* [http://localhost:3000/oai/collection?verb=ListMetadataFormats\n* [http://localhost:3000/oai/collection?verb=ListSets\n* [http://localhost:3000/oai/collection?verb=ListIdentifiers\n* \u003chttp://localhost:3000/oai/collection?verb=ListRecords\u003e\n\nThe feed that ANDS harvests:\n\n* \u003chttp://catalog.paradisec.org.au/oai/collection?verb=ListRecords\u0026metadataPrefix=rif\u003e\n\nTest at ANDS:\n\n* \u003chttps://demo.ands.org.au/registry/orca/admin/data_source_view.php?data_source_key=paradisec.org.au\u003e\n\nFeed for a single collection:\n\n* \u003chttp://catalog.paradisec.org.au/oai/collection?verb=GetRecord\u0026metadataPrefix=rif\u0026identifier=oai:paradisec.org.au:AA2\u003e\n\nTo validate our XML output as per OLAC\n\n* Download \u003chttps://xerces.apache.org/mirrors.cgi#binary\u003e\n* Extract it\n\n```bash\njava -cp xercesImpl.jar:xercesSamples.jar sax.Counter -n -np -v -s -f item.xml\n```\n\n## Setup Secrets\n\n```bash\naws secretsmanager list-secrets\n\naws secretsmanager put-secret-value --secret-id ARN --secret-string \"{\\\"site_key\\\":\\\"***\\\", \\\"secret_key\\\":\\\"***\\\"}\"\n```\n\n## Upgrades\n\nWe should regularly make sure we are running the latest versions of third-party packages\n\n```bash\n# Ruby gems\nnabu_run bundle outdated\nnabu_run bundle update\n\n# node modules\nnabu_run pnpm up -i\n\n# New rails version\nrails new nabu --database=mysql --javascript=esbuild --css=sass --skip-action-cable --skip-kamal\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadisec-archive%2Fnabu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparadisec-archive%2Fnabu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadisec-archive%2Fnabu/lists"}