- Notifications
You must be signed in to change notification settings - Fork33
GraphQL Starwars API using Graphene and Django
graphql-python/swapi-graphene
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a integration example ofGraphene in Django.View demo
All themodels andfixtures are based in the originalswapi project.
The schema (where all the magic happens) is instarwars/schema.py.
Look ma, a GraphQL integration with Django models in less than 150 LOC!
You can also have your own GraphQL Starwars example running on locally.Just run the following commands and you'll be all set!
git clone git@github.com:graphql-python/swapi-graphene.gitcd swapi-graphene# Install the requirementspip install -r requirements_base.txt# Collect static datapython manage.py collectstatic# Setup the db and load the fixturespython manage.py migrate
Once you have everything done, just run:
python manage.py runserver
Open your browser and visitlocalhost:8080 et voilá!
Deploying onHeroku
To get your own GraphQL Starwars example running on Heroku, click the button below:
Fill out the form, and you should be cooking with gas in a few seconds.
About
GraphQL Starwars API using Graphene and Django
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.