/Django-GraphQL

An API based on GraphQL using Django made for a recruitment assessment

Primary LanguagePython

GraphQL-Blog

A backend API on Django with some basic operations using GraphQL.

made-with-python

Tech Stack

  • Python
  • Django
  • GraphQL
  • Graphene

Requirements

  • Python 3
  • pip

Getting Started

  • 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

Deployment

The repository has a GitHub hook setup on the master branch which deloys the API on heroku, here.

deploy-to-heroku