项目作者: willianantunes

项目描述 :
Yet another Django GraphQL Playground project
高级语言: Python
项目地址: git://github.com/willianantunes/django-graphql-playground.git


Django GraphQL Playground

Code style: black
Coverage
Lines of Code
Maintainability Rating
Reliability Rating
Security Rating
Technical Debt
Vulnerabilities

An honest place to play with this fantastic framework with GraphQL with help of Graphene.

Run NOW with Docker

Simply execute:

  1. docker run -itd --name django-graphql-playground \
  2. -p 8000:80 \
  3. willianantunes/django-graphql-playground \
  4. /bin/bash /app/start.sh

Access on your browser: http://localhost:8000/admin/

See the logs:

  1. docker logs -f django-graphql-playground

Preparing your dev environment

This project uses pipenv, so you must have it (see how here). It is the recommended tool to work with dependency management by python.org.

At the root of project, issue the following command:

  1. pipenv install --dev --ignore-pipfile

Then do the following commands:

  1. pipenv run python manage.py makemigrations
  2. pipenv run python manage.py migrate

Run it:

  1. pipenv run python manage.py runserver

Or if you prefer:

  1. docker-compose up

Tests

I did some integration tests to see if Grafene Testing Tools is who he really says he is.

Execute the following to test everything:

  1. PIPENV_DONT_LOAD_ENV=1 pipenv run pytest --ignore-glob='**/pubsub/**/*.py'

Useful links:

Issues