Coder Social home page Coder Social logo

jonndoe / django-graphql-react-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zoeliao/django-graphql-react-demo

0.0 1.0 0.0 919 KB

Introduce how to use GraphQL to connect Django and React

Python 38.99% HTML 9.44% CSS 5.10% JavaScript 46.46%

django-graphql-react-demo's Introduction

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

django-graphql-react-demo's People

Contributors

zoeliao avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.