{"id":20710943,"url":"https://github.com/entur/nabu","last_synced_at":"2025-09-08T11:06:20.211Z","repository":{"id":29000422,"uuid":"58919082","full_name":"entur/nabu","owner":"entur","description":"Supplier status","archived":false,"fork":false,"pushed_at":"2025-08-31T11:33:25.000Z","size":1602,"stargazers_count":1,"open_issues_count":5,"forks_count":2,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-08-31T13:20:40.661Z","etag":null,"topics":["java-21","postgresql","ror","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/entur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-05-16T09:11:40.000Z","updated_at":"2025-08-27T07:36:46.000Z","dependencies_parsed_at":"2023-10-23T07:33:08.997Z","dependency_job_id":"eed66f70-0b92-4dee-8c6c-8ce4f118b67c","html_url":"https://github.com/entur/nabu","commit_stats":null,"previous_names":[],"tags_count":1141,"template":false,"template_full_name":null,"purl":"pkg:github/entur/nabu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fnabu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fnabu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fnabu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fnabu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/entur","download_url":"https://codeload.github.com/entur/nabu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fnabu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274174268,"owners_count":25235203,"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-09-08T02:00:09.813Z","response_time":121,"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":["java-21","postgresql","ror","spring-boot"],"created_at":"2024-11-17T02:13:36.107Z","updated_at":"2025-09-08T11:06:20.155Z","avatar_url":"https://github.com/entur.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nabu [![CircleCI](https://circleci.com/gh/entur/nabu/tree/master.svg?style=svg)](https://circleci.com/gh/entur/nabu/tree/master)\n\n## Liveness and readyiness\nIn production, nabu can be probed with:\n- http://localhost:9004/jersey/appstatus/up\n- http://localhost:9004/jersey/appstatus/ready\nto check liveness and readiness, accordingly\n\n## Example application.properties file for development\n\n```\nserver.port=9004\n\n# JPA settings (in-memory)\nspring.jpa.show-sql=false\nspring.jpa.hibernate.ddl-auto=create\n\n# logging settings\nlogging.level.no.rutebanken=INFO\nlogging.level.org.apache=INFO\n```\n\n## Example application.properties file for test\n\n```\n\nserver.port=9006\n\n# logging settings\nlogging.level.org.hibernate.tool.hbm2ddl=INFO\nlogging.level.org.hibernate.SQL=INFO\nlogging.level.org.hibernate.type=WARN\nlogging.level.org.springframework.orm.hibernate4.support=WARN\nlogging.level.no.rutebanken=INFO\nlogging.level.org.apache=WARN\n\n# JPA settings (postgres)\nspring.jpa.database=POSTGRESQL\nspring.datasource.platform=postgres\nspring.jpa.show-sql=false\nspring.jpa.hibernate.ddl-auto=update\nspring.database.driverClassName=org.postgresql.Driver\nspring.datasource.url=jdbc:postgresql://nabudb:5432/nabu\nspring.datasource.username=nabu\nspring.datasource.password=topsecret\n\nspring.datasource.username=postgres\nspring.datasource.password=mysecretpassword\nspring.datasource.initializationFailFast=false\n\n```\n\n## Build and Run\n\n* Building\n`mvn clean install`\n\n* Building docker image (using profile h2 for in-memory DB)\n`mvn -Pf8-build,h2`\n\n* Running\n`mvn spring-boot:run -Ph2 -Dspring.config.location=/path/to/application.properties`\n\n* Testing with curl\n`curl -vX POST -F \"file=@\\\"avinor-netex_201609291122.zip\\\"\" http://localhost:9004/jersey/files/21`\n\n* Running in docker (development)\n`docker rm -f nabu ; docker run -it --name nabu -e JAVA_OPTIONS=\"-Xmx1280m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005\" -p 5005:5005 -v /git/config/nabu/dev/application.properties:/app/config/application.properties:ro dr.rutebanken.org/rutebanken/nabu:0.0.1-SNAPSHOT`\n\n* Running in docker (test ++)\n`docker run -it --name nabu -e JAVA_OPTIONS=\"-Xmx1280m\" --link some-postgres -v /git/config/nabu/test/application.properties:/app/config/application.properties:ro dr.rutebanken.org/rutebanken/nabu:0.0.1-SNAPSHOT`\n\n\n# Flyway\nTo create the database for nabu, download and use the flyway command line tool:\nhttps://flywaydb.org/documentation/commandline/\n\n## Migration\nExecute the migration. Point to the migration files in nabu.\n\n```\n./flyway -url=jdbc:postgresql://localhost:5433/nabu -locations=filesystem:/path/to/nabu/src/main/resources/db/migration migrate\n```\n\n### Example migration\n```\n./flyway -url=jdbc:postgresql://localhost:5433/nabu -locations=filesystem:/path/to/nabu/src/main/resources/db/migration migrate\nFlyway 4.2.0 by Boxfuse\n\nDatabase password: \nDatabase: jdbc:postgresql://localhost:5433/nabu (PostgreSQL 9.6)\nSuccessfully validated 1 migration (execution time 00:00.016s)\nCreating Metadata table: \"public\".\"schema_version\"\nCurrent version of schema \"public\": \u003c\u003c Empty Schema \u003e\u003e\nMigrating schema \"public\" to version 1 - Base version\nSuccessfully applied 1 migration to schema \"public\" (execution time 00:04.220s).\n```\n\n\n## Baseline existing database\nTo baseline an existing database that does not contain the table `schema_version`.\nThe schema of this database must be exactly equivalent to the first migration file. If not, you might be better off by starting from scratch and using the restoring_import to repopulate the new database.\n\n```\n./flyway -url=jdbc:postgresql://localhost:6432/nabu -locations=filesystem:/path/to/nabu/src/main/resources/db/migration baseline\n```\n\n\n## Schema changes\nCreate a new file according to the flyway documentation in the folder `resources/db/migration`.\nCommit the migration together with code changes that requires this schema change.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentur%2Fnabu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentur%2Fnabu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentur%2Fnabu/lists"}