Skip to content

willianantunes/django-graphql-playground

Repository files navigation

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:

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

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

See the logs:

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:

pipenv install --dev --ignore-pipfile

Then do the following commands:

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

Run it:

pipenv run python manage.py runserver

Or if you prefer:

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:

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

Useful links:

Issues