{"id":19440438,"url":"https://github.com/devinit/datahub","last_synced_at":"2025-04-24T22:33:41.580Z","repository":{"id":21466222,"uuid":"91062394","full_name":"devinit/datahub","owner":"devinit","description":"Datahub v2","archived":false,"fork":false,"pushed_at":"2024-04-25T08:23:40.000Z","size":19130,"stargazers_count":15,"open_issues_count":93,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-25T09:34:47.937Z","etag":null,"topics":["apollo-client","d3","datahub","glamorous","graphql","jest","mapbox-gl","nextjs","reactjs","redux","semantic-ui-react","storybook","typescript","webpack"],"latest_commit_sha":null,"homepage":"http://data.devinit.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devinit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-05-12T07:11:46.000Z","updated_at":"2024-04-25T09:34:55.740Z","dependencies_parsed_at":"2023-10-03T04:14:28.911Z","dependency_job_id":"8c6b49cc-749a-46b5-9727-339f95996fae","html_url":"https://github.com/devinit/datahub","commit_stats":{"total_commits":2147,"total_committers":11,"mean_commits":195.1818181818182,"dds":0.3651606893339544,"last_synced_commit":"edc7cc6203dcd4a44bdf165f7a1612aa922257e0"},"previous_names":[],"tags_count":230,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinit%2Fdatahub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinit%2Fdatahub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinit%2Fdatahub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinit%2Fdatahub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devinit","download_url":"https://codeload.github.com/devinit/datahub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223971586,"owners_count":17234085,"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":["apollo-client","d3","datahub","glamorous","graphql","jest","mapbox-gl","nextjs","reactjs","redux","semantic-ui-react","storybook","typescript","webpack"],"created_at":"2024-11-10T15:29:21.669Z","updated_at":"2024-11-10T15:29:22.264Z","avatar_url":"https://github.com/devinit.png","language":"TypeScript","readme":"[![Build Status](https://travis-ci.org/devinit/datahub.svg?branch=master)](https://travis-ci.org/devinit/datahub)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/73e243adf7f946208ae9bc8f892ed618)](https://www.codacy.com/app/epicallan/datahub?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=devinit/datahub\u0026amp;utm_campaign=Badge_Grade)\n[![Dependency Status](https://gemnasium.com/badges/github.com/devinit/datahub.svg)](https://gemnasium.com/github.com/devinit/datahub)\n[![codecov](https://codecov.io/gh/devinit/datahub/branch/master/graph/badge.svg)](https://codecov.io/gh/devinit/datahub)\n\nInstallation\n-------------\n\n```\n npm install\n\n```\n\n### Scripts/Commands\n\n- `npm run pull` fetches updates from the CMS and syncs the appropriate project files. Be sure to specify the correct API URL, otherwise\nyou may pull incorrect data.\n\nTODO:\n_________\n\n- [ ] Maybe replace redux with [unistore](https://github.com/developit/unistore)\n- [x] Use [greenlet](https://github.com/developit/greenlet) for webworkers --\u003e didnt pan out well\n- [ ] Explore [purgecss](https://github.com/FullHuman/purgecss) for css optimisation --\u003e need to carry out some tests\n- [ ] Explore [reactpot](https://github.com/reactopt/reactopt) for further perf\n\nImportant Points / guides\n\n------------------------\n\n- Develop from a unix OS (MacOs , ubuntu etc). I dont plan to add windows support.\n\n- Prefer to use vscode, it has very good typescript support.\n\n- We are building on top of next.js see next.config.js for configs.\n\n- `` npm run build-fragment `` to build out a fragment json for grapqhl union types\n\n- we use npm config variables to prefill some global constants such as the API et la [see for more](http://www.marcusoft.net/2015/08/npm-scripting-configs-and-arguments.html#npm-configuration)\n\n- In dev mode we run a nodemon process, it sometimes doesnt die when you cntrl-c. You could use\n```lsof -i tcp:4444 ``` to find its PID and then kill it with ``` kill -9 \u003cPID\u003e ```.\n\n## [Atomic react design component development](http://bradfrost.com/blog/post/atomic-web-design/) with [storybook](https://storybooks.js.org/)\n\n\nCypress testing\n-------\n- check out the apps [cypress dashboard here](https://dashboard.cypress.io/#/organizations/dab40b78-b24e-4f1c-913a-0a0b8bd0c71a/projects))\n- You need to have run `npm run build:next` before running the cypress-open command. Checkout the [readme file](https://github.com/devinit/datahub/tree/cypress/cypress) in cypress directory for more.\n\n\n\nPain Points / issues\n--------------\n\n- Currently stack with npm instead of yarn.\nThe thing with installing with yarn, is that the charts library will stop working well for some charts. This\nmay have to do with the way npm installs dependencies vs yarn.\n\n- For some reason cypress tests fail on travis. Temporary measure is to have them run on the git push pre hook.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinit%2Fdatahub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevinit%2Fdatahub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinit%2Fdatahub/lists"}