This is a Django Tutorial that contains a example with REST API and GraphQL.
The data for the tutorial is obtained from https://github.com/graphql-python/swapi-graphene
Please follow these steps:
-
Clone the repository
-
Checkout the branch depending of your need for the tutorial
-
Install pip and virtualenv
-
Install project dependencies
$ pip install -r requirements.txt
-
Run docker-compose
$ docker-compose up
-
Initialize your database
$ python manage.py migrate
-
Create superuser account
$ python manage.py createsuperuser
-
Run your server
$ python manage.py runserver 0.0.0.0:8000
-
Run your tests
$ python manage.py test