{"id":17809563,"url":"https://github.com/ldd/gatsby-starter-github-portfolio","last_synced_at":"2025-03-17T17:30:41.630Z","repository":{"id":42342697,"uuid":"103217742","full_name":"ldd/gatsby-starter-github-portfolio","owner":"ldd","description":"Gatsby starter to show your github portfolio","archived":false,"fork":false,"pushed_at":"2023-01-04T01:20:11.000Z","size":3033,"stargazers_count":9,"open_issues_count":21,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T02:10:24.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ldd.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}},"created_at":"2017-09-12T03:31:30.000Z","updated_at":"2022-03-10T15:43:39.000Z","dependencies_parsed_at":"2023-02-01T17:30:40.791Z","dependency_job_id":null,"html_url":"https://github.com/ldd/gatsby-starter-github-portfolio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldd%2Fgatsby-starter-github-portfolio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldd%2Fgatsby-starter-github-portfolio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldd%2Fgatsby-starter-github-portfolio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ldd%2Fgatsby-starter-github-portfolio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ldd","download_url":"https://codeload.github.com/ldd/gatsby-starter-github-portfolio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871904,"owners_count":20361380,"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-10-27T15:19:50.171Z","updated_at":"2025-03-17T17:30:41.308Z","avatar_url":"https://github.com/ldd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### gatsby-starter-github-portfolio\n\nThis is a starter site that attempts to follow the following flow:\n\n1. During development:\n\n- fetch data from github\n- filter and sort the data you got from github\n\n2. At build time:\n\n- static results get you a static page\n\n3. When accessing the site:\n\n- no API calls to Github's API\n\n## Install\n\n`npm install gatsby-starter-github-portfolio`\n\n## Configuration\n\n- get a [personal access token from github](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).\n- create a new file `.env` and save your token:\n\n```\nTOKEN=very-long-unreadable-string-goes-here\n```\n\n- modify `gatsby-config.js`. Replace `ldd` (my user name) with yours. For example:\n\n```\n  q: \"author:someUser is:merged state:closed type:pr sort:comments\",\n  author: \"someUser\"\n\n```\n\n## Run\n\n- `yarn develop` or `npm develop` for development\n\n- `yarn build` or `npm build` to create a build that you can deploy to your favourite host\n\n## Tips and tricks\n\nYou probably want to look at [gatsby-source-github-api](https://github.com/ldd/gatsby-source-github) for how to make valid queries.\n\nIdeally, you should only modify:\n\n- `gatsby-config.js` to change the `graphQL` query from the github API\n- `main.js` to change the `query` on the data\n- `dataParser.js` to filter and sort the data you got\n\n### FAQ\n\n#### There was an error in your GraphQL query\n\n- make sure you have a token and that you saved it in a file named `.env`\n- if you want to make a RAW github v4 Query, do it in `gatsby-config.js`\n  - My plugin, `gatsby-source-github-api` takes an optional field, `graphQLQuery`, that let's you define it\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldd%2Fgatsby-starter-github-portfolio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fldd%2Fgatsby-starter-github-portfolio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fldd%2Fgatsby-starter-github-portfolio/lists"}