{"id":21084165,"url":"https://github.com/unplugstudio/graphql-cookbook","last_synced_at":"2025-10-07T03:51:35.017Z","repository":{"id":98728600,"uuid":"152261997","full_name":"unplugstudio/graphql-cookbook","owner":"unplugstudio","description":"Project files for the tutorial \"Build a GraphQL API powered by Django\".","archived":false,"fork":false,"pushed_at":"2018-10-15T21:42:12.000Z","size":18,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-10T23:02:36.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/unplugstudio.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}},"created_at":"2018-10-09T14:07:00.000Z","updated_at":"2022-07-07T12:05:54.000Z","dependencies_parsed_at":"2023-05-25T01:00:08.987Z","dependency_job_id":null,"html_url":"https://github.com/unplugstudio/graphql-cookbook","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/unplugstudio/graphql-cookbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugstudio%2Fgraphql-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugstudio%2Fgraphql-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugstudio%2Fgraphql-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugstudio%2Fgraphql-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unplugstudio","download_url":"https://codeload.github.com/unplugstudio/graphql-cookbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugstudio%2Fgraphql-cookbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278717450,"owners_count":26033542,"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-07T02:00:06.786Z","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":"2024-11-19T20:22:48.839Z","updated_at":"2025-10-07T03:51:35.012Z","avatar_url":"https://github.com/unplugstudio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build a GraphQL API powered by Django\n\nThis repository contains the code samples to build your own GraphQL API using the Django web framework and the Graphene library for Python. It is intended to be accompanied by a presentation (originally prepared for DjangoCon US 2018).\n\n## Slides\n\nThe slides are available here: https://keen-mayer-abfbee.netlify.com/\n\nYou can move across top-level sections using the left/right keys. On each top-level section you can use the up/down keys to drill into the content. Press `Esc` to go into overview mode.\n\n## Using diffs to follow along\n\nYou can use the git's diff to see exactly what has changed from one step to the other (including which files have been modified and exactly which lines have been added or removed). GitHub includes an online diff viewer accessible right from the browser. To use it:\n\n1. Go to the [**Releases**](https://github.com/unplugstudio/graphql-cookbook/releases) tab in the repository homepage.\n1. Scroll to find the step you want to examine, for example `step-10`.\n1. Right below the step you'll see the commit identifier (a string of letters and numbers like `67266fe`). Click it.\n1. You should now be in GitHub's diff viewer. Lines of code with a green background indicate additions, and a red background indicates deletions.\n\nAt this point you can manually reproduce the steps in your local copy of the repository, or you can checkout each particular step with: `git checkout step-10` (and so forth). This command will apply the changes for a particular step on your codebase so you can be in sync with the slides.\n\n## Requirements\n\nWe assume you're comfortable with Python and Django. You should also be familiar with the usage of pip and how to install packages in your Python environment.\n\nThe code and all directions were written for Python 3. It may work with Python 2 but you may find unexpected errors.\n\n## Quickstart\n\n```bash\n# Create a Python 3 virtual environment, then...\npip install -r requirements.txt\npython manage.py migrate\npython manage.py createsuperuser\npython manage.py loaddata demo.json\npython manage.py runserver\n```\n\n## Useful links\n\n### General GraphQL\n- [Introduction to GraphQL](https://graphql.org/learn/)\n- [GraphQL technical specification](https://facebook.github.io/graphql/)\n- [Relay specification](https://facebook.github.io/relay/docs/en/graphql-server-specification.html)\n\n### Python / Django specific\n- [Graphene Python documentation](http://docs.graphene-python.org/en/latest/)\n- [Graphene Django documentation](https://docs.graphene-python.org/projects/django/en/latest/)\n- [Graphene Django examples](https://github.com/graphql-python/graphene-django/tree/master/examples)\n- [Migrating to graphene-django 2.0](https://github.com/graphql-python/graphene/blob/master/UPGRADE-v2.0.md)\n- [Use DjangoObjectType (or something like it) as an Input class?](https://github.com/graphql-python/graphene-django/issues/121)\n\n### Miscellaneous\n- [A beginner's guide to GraphQL (using Node.js)](https://medium.freecodecamp.org/a-beginners-guide-to-graphql-60e43b0a41f5)\n- [5 reasons you shouldn't be using GraphQL](https://blog.logrocket.com/5-reasons-you-shouldnt-be-using-graphql-61c7846e7ed3)\n- [Collection of public GraphQL APIs](http://apis.guru/graphql-apis/)\n- [Django Filter documentation](https://django-filter.readthedocs.io/en/master/index.html)\n\n### Client-side\n- [Apollo Client](https://www.apollographql.com/client)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugstudio%2Fgraphql-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funplugstudio%2Fgraphql-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugstudio%2Fgraphql-cookbook/lists"}