GraphQL server with Graphene-Python
-
Clone the repo
git clone https://github.com/mateusbatista4/graphql-django.git
-
Get into the repository
cd graphql-django
-
Create a Virtual Enviroment
python3 -m venv venv
-
Activate your Virtual Enviroment (differnt for Linux/Windows)
source venv/bin/activate
- Install the requirements listed in requirements.txt
pip install -r requirements.txt
Use this space to show useful examples of how to make some graphQL queryes
-
Run the project at the root repo
python3 manage.py runserver
-
On your browser access the 'graphlq/' endpoint
http://localhost:8000/graphql
-
Make your queryes, as the folloewd example
query {
allMovies {
id
name
category {
name
}
}
}