{"id":13499677,"url":"https://github.com/graphql-python/swapi-graphene","last_synced_at":"2025-04-08T08:32:13.360Z","repository":{"id":66067303,"uuid":"43870524","full_name":"graphql-python/swapi-graphene","owner":"graphql-python","description":"GraphQL Starwars API using Graphene and Django","archived":false,"fork":false,"pushed_at":"2019-12-03T09:11:23.000Z","size":130,"stargazers_count":173,"open_issues_count":6,"forks_count":34,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-17T11:01:19.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://swapi.graphene-python.org","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/graphql-python.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}},"created_at":"2015-10-08T07:36:47.000Z","updated_at":"2025-01-16T18:11:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9d703ed-b967-4652-b189-417acfb63785","html_url":"https://github.com/graphql-python/swapi-graphene","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/graphql-python%2Fswapi-graphene","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-python%2Fswapi-graphene/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-python%2Fswapi-graphene/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-python%2Fswapi-graphene/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphql-python","download_url":"https://codeload.github.com/graphql-python/swapi-graphene/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247804677,"owners_count":20999026,"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-07-31T22:00:38.103Z","updated_at":"2025-04-08T08:32:12.738Z","avatar_url":"https://github.com/graphql-python.png","language":"Python","readme":"# GraphQL SWAPI using Graphene \n\nThis is a integration example of [Graphene](http://graphene-python.org) in Django.\n[View demo](http://swapi.graphene-python.org/)\n\n\n## Structure\n\nAll the [models](./starwars/models.py) and [fixtures](./starwars/fixtures/) are based in the original [swapi project](https://github.com/phalt/swapi).\n\nThe schema (*where all the magic happens*) is in [starwars/schema.py](./starwars/schema.py).\n\u003e Look ma, a GraphQL integration with Django models in less than 150 LOC!\n\n\n## Deploying locally\n\nYou can also have your own GraphQL Starwars example running on locally.\nJust run the following commands and you'll be all set!\n\n```bash\ngit clone git@github.com:graphql-python/swapi-graphene.git\ncd swapi-graphene\n\n# Install the requirements\npip install -r requirements_base.txt\n\n# Collect static data\npython manage.py collectstatic\n\n# Setup the db and load the fixtures\npython manage.py migrate\n```\n\nOnce you have everything done, just run:\n\n```bash\npython manage.py runserver\n```\n\nOpen your browser and visit [localhost:8080](http://localhost:8080/) et voilá!\n\n\n## Deploying on [Heroku](http://heroku.com)\n\nTo get your own GraphQL Starwars example running on Heroku, click the button below:\n\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/graphql-python/swapi-graphene)\n\nFill out the form, and you should be cooking with gas in a few seconds.\n","funding_links":[],"categories":["Examples","Implementations"],"sub_categories":["Python Examples","Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-python%2Fswapi-graphene","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphql-python%2Fswapi-graphene","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-python%2Fswapi-graphene/lists"}