Skip to content

ZoeLiao/Django-GraphQL-React-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django-GraphQL-React-Demo

Introduce how to use GraphQL to connect Django and React

Audience

The project is intended for engineers who want to know how to use GraphQL to connect Django and React. There is a basic GraphQL server in backend directory and GraphQL client in frontend directory. If you want to know the details, you can read the following Medium articles.

Medium

Demo Images

  • Django - GraphiQL - Mutation:
    Django - GraphiQL - Mutation
  • Django - GraphiQL - Query:
    Django - GraphiQL - Query
  • React - Mutation & Query:
    React - Mutation & Query

Backend

  • Directory: backend
  • Language: Python3
  • Framework: Django

Set Up

  • cd backend
  • virtualenv venv
  • source venv/bin/activate
  • pip install -r requirements.txt
  • cd myproject
  • python manage.py migrate
  • python manage.py runserver
  • Visit http://localhost:8000/graphql

Frontend

  • Directory: frontend
  • Library: React

Set Up

About

Introduce how to use GraphQL to connect Django and React

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published