A backend API on Django with some basic operations using GraphQL.
- Python
- Django
- GraphQL
- Graphene
- Python 3
- pip
- Clone the repo and change working directory
$ git clone https://github.com/akshat0047/Django-GraphQL.git && cd Django-GraphQL
- Create a virtual environment and activate it
$ python -m venv venv
$ source venv/bin/activate
- Install Requirements
$ pip install -r requirements/local.txt
- Rename and modify .env file
$ cd Blog/Blog/settings
$ cp .env.example .env
- Create Migrations for our app
$ python manage.py makemigrations reckonsys
- Create the database
$ python manage.py migrate
- Start Django server
$ python manage.py runserver
- Visit the url in a web-browser
The repository has a GitHub hook setup on the master branch which deloys the API on heroku, here.