Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GraphQL Starwars API using Graphene and Django

NotificationsYou must be signed in to change notification settings

graphql-python/swapi-graphene

Repository files navigation

This is a integration example ofGraphene in Django.View demo

Structure

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!

Deploying locally

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:

Deploy

Fill out the form, and you should be cooking with gas in a few seconds.

About

GraphQL Starwars API using Graphene and Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp