Build a blog using Django, GraphQL, and Vue

Click for: original source

This tutorial will take you through the process of building a Django blog back end and a Vue front end, using GraphQL to communicate between them. By Philipp Acsany.

For this project, you’ll create a small blogging application with some rudimentary features: Authors can write many posts, posts can have many tags and can be either published or unpublished.

Further in the article:

  • Prerequisites
  • Set up the Django Blog
  • Build a blog using Django, GraphQL, and Vue
  • Set up Graphene-Django
  • Set up django-cors-headers
  • Set up Vue.js
  • Create basic views and components
  • Update the Vue components
  • Implement Vue Apollo
  • Fetch the data

You’ve seen how you can use GraphQL for building typed, flexible views of your data. You can use these same techniques on an existing Django application you’ve built or one you plan to build. Like other APIs, you can use yours in most any client-side framework as well. This is extensive tutorial with all code attached and explained. Nice one!

[Read More]

Tags restful json web-development apis python nosql