{"id":29200938,"url":"https://github.com/datopian/ckanext-datapub","last_synced_at":"2025-10-09T02:44:21.592Z","repository":{"id":48688705,"uuid":"302364243","full_name":"datopian/ckanext-datapub","owner":"datopian","description":"CKAN extension to integrate your custom DataPub.js based dataset and resource editor","archived":false,"fork":false,"pushed_at":"2025-07-26T01:41:01.000Z","size":19069,"stargazers_count":5,"open_issues_count":1,"forks_count":5,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-16T10:50:32.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datopian.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}},"created_at":"2020-10-08T14:17:20.000Z","updated_at":"2021-07-14T05:41:05.000Z","dependencies_parsed_at":"2025-04-03T02:22:46.334Z","dependency_job_id":"00415624-d227-41b5-9a5d-de8f3e947ecc","html_url":"https://github.com/datopian/ckanext-datapub","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/datopian/ckanext-datapub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fckanext-datapub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fckanext-datapub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fckanext-datapub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fckanext-datapub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datopian","download_url":"https://codeload.github.com/datopian/ckanext-datapub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datopian%2Fckanext-datapub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000771,"owners_count":26082906,"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-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-07-02T11:06:28.646Z","updated_at":"2025-10-09T02:44:21.581Z","avatar_url":"https://github.com/datopian.png","language":"Shell","readme":"Enable Datapub apps in your CKAN instance.\n\nFind out about Datapub here - https://github.com/datopian/datapub.\n\n## Installation\n\nJust follow standard procedure for setting up an extension for the CKAN and add `datapub` into list of the plugins. Note that this extension supports CKAN 2.8 onwards.\n\n## Building and publishing the datapub app\n\nTo build the datapub React app we use the `sync.sh` script. This script will\n\n1. Clone (or copy from a local folder) the datapub app source\n2. Install its dependencies and create the production build\n3. Update the asset references in the CKAN templates so they include the built application\n\nThe `sync.sh` accepts the following parameters:\n\n    sync.sh [\u003cdatapub-repo-or-folder\u003e] [\u003cgit-tag\u003e] [\u003ctemplate-tag-name\u003e]\n\n* `\u003cdatapub-repo-or-folder\u003e` can be a Git URL or the path to a local datapub repository. Defaults to https://github.com/datopian/datapub\n* `\u003cgit-tag\u003e` is the git tag or branch that you want to build. Defaults to `master`\n* `\u003ctemplate-tag-name\u003e` is used to target CKAN\u003c=2.8 (using `resources`) or CKAN\u003e=2.9 (using `webassets`). Defaults to `webassets`.\n\nFor example, to build a released tag of a custom datapub repo:\n\n    ./sync.sh https://github.com/datopian/datapub v0.1.2\n\nSame, but targetting CKAN 2.8:\n\n    ./sync.sh https://github.com/datopian/datapub v0.1.2 resources\n\n\nTo build a local development clone of datapub:\n\n    ./sync.sh ../datapub-gdx\n\n\n## Template changes\n\nThis extension extends the `templates/blob_storage/snippets/upload_module.html` template:\n\n```\n{{ASSETS}}\n\n\u003cdiv id=\"ResourceEditor\"\n     data-dataset-id=\"{{ pkg_id }}\"\n     data-api=\"{{ base_url }}\"\n     data-lfs=\"{{ h.blob_storage_server_url() }}\"\n     data-auth-token=\"{{ api_key }}\"\n     data-organization-id=\"{{ h.blob_storage_storage_namespace() }}\"\n     data-resource-id=\"{{ resource_id }}\"\u003e\n\u003c/div\u003e\n```\n\nWhen running `sync.sh`, the `{{ASSETS}}` placeholder will be replaced by the appropiate template tags.\n\nOn CKAN\u003e=2.9, `{{ASSETS}}` gets replaced by these two webassets references:\n\n```\n{% asset \"datapub/datapub-js\" %}\n{% asset \"datapub/datapub-css\" %}\n```\n\nOn CKAN\u003c=2.8, individual fanstatic resources need to be referenced, eg:\n\n```\n{% resource 'datapub/css/main.1eb11ae4.chunk.css' %}\n{% resource 'datapub/js/runtime-main.c155da57.js' %}\n{% resource 'datapub/js/2.2599189b.chunk.js' %}\n{% resource 'datapub/js/main.c4752953.chunk.js' %}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatopian%2Fckanext-datapub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatopian%2Fckanext-datapub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatopian%2Fckanext-datapub/lists"}