{"id":27598687,"url":"https://github.com/danimal141/learning-graphql-ts","last_synced_at":"2026-05-10T07:54:16.458Z","repository":{"id":73189071,"uuid":"311001524","full_name":"danimal141/learning-graphql-ts","owner":"danimal141","description":"This project builds a sample GraphQL application to learn \"Learning GraphQL\".","archived":false,"fork":false,"pushed_at":"2020-12-30T13:55:29.000Z","size":1415,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-19T10:50:51.089Z","etag":null,"topics":["create-react-app","graphql","graphql-code-generator","reactjs","type-graphql","typeorm","typescript"],"latest_commit_sha":null,"homepage":"","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/danimal141.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-11-08T06:37:48.000Z","updated_at":"2021-10-25T16:00:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"672539cc-eccf-4b5d-9f7d-351805ca6b05","html_url":"https://github.com/danimal141/learning-graphql-ts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danimal141/learning-graphql-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Flearning-graphql-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Flearning-graphql-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Flearning-graphql-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Flearning-graphql-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danimal141","download_url":"https://codeload.github.com/danimal141/learning-graphql-ts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danimal141%2Flearning-graphql-ts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001871,"owners_count":26083197,"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":["create-react-app","graphql","graphql-code-generator","reactjs","type-graphql","typeorm","typescript"],"created_at":"2025-04-22T14:29:27.639Z","updated_at":"2025-10-09T17:35:55.877Z","avatar_url":"https://github.com/danimal141.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# learning-graphql-ts\n\nThis project builds a sample GraphQL application to learn [this book](https://www.oreilly.com/library/view/learning-graphql/9781492030706/).\n\nDifferent from [the original](https://github.com/MoonHighway/learning-graphql), this project uses TypeScript, MySQL, typeorm and type-graphql.\n\n## How to develop\n\n```\n// setup\n$ yarn\n$ docker-compose up\n\n// run all\n// Server: you can open `http://localhost:4000/playground` and `server/schema.gql` would be automatically generated / updated\n// Client: you can open `http://localhost:3000` and `client/graphql/generated.tsx` would be automatically generated / updated\n$ yarn dev\n```\n\n## How to get a GitHub Token\n\n- Create an OAuth app [here](https://github.com/settings/developers).\n- Access: http://github.com/login/authorize?client_id=xxx\u0026scope=user\n  - Then you would redirect to `http://localhost:4000?code=xxx`\n  - You can use the code like:\n\n```\nmutation {\n  githubAuth(code: \"xxx\") {\n    token\n    user {\n      githubLogin\n      name\n      avatar\n    }\n  }\n}\n```\n\n- Then you can use the token like `{ \"Authorization\": \u003ctoken\u003e }` on the http headers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanimal141%2Flearning-graphql-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanimal141%2Flearning-graphql-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanimal141%2Flearning-graphql-ts/lists"}