A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/graphql-python/swapi-graphene below:

graphql-python/swapi-graphene: GraphQL Starwars API using Graphene and Django

GraphQL SWAPI using Graphene

This is a integration example of Graphene in Django. View demo

All the models and fixtures are based in the original swapi project.

The schema (where all the magic happens) is in starwars/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.git
cd swapi-graphene

# Install the requirements
pip install -r requirements_base.txt

# Collect static data
python manage.py collectstatic

# Setup the db and load the fixtures
python manage.py migrate

Once you have everything done, just run:

python manage.py runserver

Open your browser and visit localhost:8080 et voilá!

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4