{"id":13548713,"url":"https://github.com/datahub-v2/frontend","last_synced_at":"2025-04-02T21:32:12.864Z","repository":{"id":40747075,"uuid":"95216488","full_name":"datahub-v2/frontend","owner":"datahub-v2","description":"DataHub frontend","archived":false,"fork":false,"pushed_at":"2023-02-14T02:50:37.000Z","size":26693,"stargazers_count":32,"open_issues_count":32,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-22T04:02:10.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://datahub.io","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datahub-v2.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}},"created_at":"2017-06-23T12:03:51.000Z","updated_at":"2024-09-26T20:52:18.000Z","dependencies_parsed_at":"2024-01-17T06:12:15.619Z","dependency_job_id":"9f415874-7efb-4357-98a6-d5d3af0171a9","html_url":"https://github.com/datahub-v2/frontend","commit_stats":null,"previous_names":["datahub-v2/frontend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datahub-v2%2Ffrontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datahub-v2%2Ffrontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datahub-v2%2Ffrontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datahub-v2%2Ffrontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datahub-v2","download_url":"https://codeload.github.com/datahub-v2/frontend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246895877,"owners_count":20851346,"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","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-01T12:01:13.563Z","updated_at":"2025-04-02T21:32:08.894Z","avatar_url":"https://github.com/datahub-v2.png","language":"SCSS","funding_links":[],"categories":["CSS","others"],"sub_categories":[],"readme":"## Table of contents\n- [Table of contents](#table-of-contents)\n- [Quick Start](#quick-start)\n  - [Env vars](#env-vars)\n- [Developers](#developers)\n  - [Analytics](#analytics)\n- [Deployment](#deployment)\n\n---\n\nDataHub frontend in Node.js.\n\n[![Build Status](https://travis-ci.org/datopian/frontend.svg?branch=master)](https://travis-ci.org/datahq/frontend)\n\n## Quick Start\n\nClone the repo, install dependencies using yarn (or npm), and run the server:\n\n```\n# or npm install\nyarn install\nnpm start\n```\n\n### Env vars\n\nWe use `.env` file for loading environment variables. Please use the provided `env.template` as a template:\n\n* `SITE_URL` - FQ base URL of the site, e.g. `https://datahub.io`\n* `API_URL` - FQ base URL of the API endpoint, e.g. `https://api.datahub.io`\n* `BITSTORE_URL` - base URL for the bitstore (pkgstore) e.g. `https://pkgstore.datahub.io`\n\nWhen running locally, use test api address in `.env`:\n\n```bash\nAPI_URL=https://api-testing.datahub.io\nBITSTORE_URL=https://pkgstore-testing.datahub.io\n```\n\nSee the [docs](http://docs.datahub.io/developers/) for more information.\n\n## Developers\n\nThe JavaScript portion of the app, which is responsible for rendering views,\n comes from a different repo. That repo must be submoduled in and then built:\n\n```bash\ngit submodule init \u0026\u0026 git submodule update\n```\n\nTo build the CSS:\n\n1. Install sass\n2. Run:\n\n   `sass --watch public/sass:public/stylesheets`\n\nNow run the server:\n\n```bash\nexport API_URL=https://api.datahub.io\nexport BITSTORE_URL=https://pkgstore.datahub.io\nexport dev=true\nnpm start\n```\n\nTo run in watch mode:\n\n```bash\n# Note the -e which means we watch for changes in templates too\nnodemon -e \"js html\" index.js\n```\n\nTo run tests (make sure all environment variables are set):\n\n```bash\nyarn test\n```\n\n### Analytics\n\nWe use Google Tag Manager to manage all tags (eg, google analytics, optimize and more) so instead of adding a new script into templates, you should consider editing via UI of Tag Manager.\n\n## Deployment\n\n1. When pushing any commit to the `master` branch, it triggers a build on [the Deploy repo](https://github.com/datopian/deploy/pulls) which then creates a pull request there.\n2. The changes in frontend are auto deployed to the staging site of DataHub, located at https://testing.datahub.io.\n3. Once the staging site looks as expected, deployment to production happens by merging the automatically created pull request from step 1.\n4. That's it! Just wait for about 5 minutes and you should be able to see the changes reflected on [DataHub.io](https://datahub.io).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatahub-v2%2Ffrontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatahub-v2%2Ffrontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatahub-v2%2Ffrontend/lists"}