Advertisement

© 2021

Decoupled Django

Understand and Build Decoupled Django Architectures for JavaScript Front-ends

  • Gives the reader a complete overview of the architecture of a decoupled Django project

  • Guides the reader to integrating GraphQL in a Django project

  • Guides the reader through the different tools and approaches for testing a decoupled Django project

Apress
Book
  • 5.1k Downloads

Table of contents

  1. Front Matter
    Pages i-xx
  2. Valentino Gagliardi
    Pages 1-15
  3. Valentino Gagliardi
    Pages 17-29
  4. Valentino Gagliardi
    Pages 31-40
  5. Valentino Gagliardi
    Pages 53-61
  6. Valentino Gagliardi
    Pages 63-89
  7. Valentino Gagliardi
    Pages 91-111
  8. Valentino Gagliardi
    Pages 113-132
  9. Valentino Gagliardi
    Pages 133-152
  10. Valentino Gagliardi
    Pages 173-205
  11. Valentino Gagliardi
    Pages 207-230
  12. Back Matter
    Pages 231-236

About this book

Introduction

Apply decoupling patterns, properly test a decoupled project, and integrate a Django API with React, and Vue.js. This book covers decoupled architectures in Django, with Django REST framework and GraphQL. With practical and simple examples, you’ll see firsthand how, why, and when to decouple a Django project. 

Starting with an introduction to decoupled architectures versus monoliths, with a strong focus on the modern JavaScript scene, you’ll implement REST and GraphQL APIs with Django, add authentication to a decoupled project, and test the backend. You’ll then review functional testing for JavaScript frontends with Cypress. You will also learn how to integrate GraphQL in a Django project, with a focus on the benefits and drawbacks of this new query language.

By the end of this book, you will be able to discern and apply all the different decoupling strategies to any Django project, regardless of its size.

You will:

  • Choose the right approach for decoupling a Django project
  • Build REST APIs with Django and a Django REST framework
  • Integrate Vue.js and GraphQL in a Django project
  • Consume a Django REST API with Next.js
  • Test decoupled Django projects

Keywords

Django Python Django Rest Framework Java Script Decoupled GraphQL Angular Single Page Application Testing

Authors and affiliations

  1. 1.Colle di Val D’ElsaItaly

About the authors

Valentino Gagliardi is a freelance consultant with a wealth of experience in the IT industry. He spent the last 8 years as a front-end consultant, providing advice and help, coaching and training on JavaScript and React. He worked as an instructor for multiple training agencies around the country, running in-person workshops and creating learning paths for aspiring developers. He loves to share his knowledge on his blog with tutorials reaching over 100,000  monthly visits. An avid Django user, he is active in the Python community as a speaker, and as a coach for Django Girls.

Bibliographic information

  • Book Title Decoupled Django
  • Book Subtitle Understand and Build Decoupled Django Architectures for JavaScript Front-ends
  • Authors Valentino Gagliardi
  • DOI https://doi.org/10.1007/978-1-4842-7144-5
  • Copyright Information Valentino Gagliardi 2021
  • Publisher Name Apress, Berkeley, CA
  • eBook Packages Professional and Applied Computing Professional and Applied Computing (R0) Apress Access Books
  • Softcover ISBN 978-1-4842-7143-8
  • eBook ISBN 978-1-4842-7144-5
  • Edition Number 1
  • Number of Pages XX, 236
  • Number of Illustrations 22 b/w illustrations, 0 illustrations in colour
  • Topics Python
    Web Development