https://github.com/repodevs/django-graphql-examples
Django GraphQL Examples with graphene_django
https://github.com/repodevs/django-graphql-examples
django graphene graphene-django graphql
Last synced: 3 months ago
JSON representation
Django GraphQL Examples with graphene_django
- Host: GitHub
- URL: https://github.com/repodevs/django-graphql-examples
- Owner: repodevs
- Created: 2019-03-07T18:07:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T20:44:52.000Z (over 2 years ago)
- Last Synced: 2024-03-17T14:33:17.971Z (almost 2 years ago)
- Topics: django, graphene, graphene-django, graphql
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django GraphQL (using graphene_django) Examples
This is following tutorial on https://docs.graphene-python.org/projects/django/en/latest/tutorial-plain/
# How to run
Install dependencies
```bash
pipenv install
```
Migrate Django
```bash
pipenv run python manage.py migrate
```
Load the fixtures data
```bash
pipenv run python manage.py loaddata ingredients
```
Run django
```bash
pipenv run python manage.py runserver
```
Access GraphiQL Views by opening [localhost:8000/graphql](http://localhost:8000/graphql)