The Wayback Machine - https://web.archive.org/web/20210114093756/https://github.com/ZoeLiao/Django-GraphQL-React-Demo
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

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

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.