• Complain

Valentino Gagliardi - Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends

Here you can read online Valentino Gagliardi - Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: Apress, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Valentino Gagliardi Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends
  • Book:
    Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2021
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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, youll 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, youll implement REST and GraphQL APIs with Django, add authentication to a decoupled project, and test the backend. Youll 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.


What Youll Learn
  • 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
Who This Book Is For
Software developers with basic Django skills keen to learn decoupled architectures with Django. JavaScript developers interested in learning full-stack development and decoupled architectures with Django.

Valentino Gagliardi: author's other books


Who wrote Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends? Find out the surname, the name of the author of the book and a list of all author's works by series.

Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Contents
Landmarks
Book cover of Decoupled Django Valentino Gagliardi Decoupled Django - photo 1
Book cover of Decoupled Django
Valentino Gagliardi
Decoupled Django
Understand and Build Decoupled Django Architectures for JavaScript Front-ends
1st ed.
Logo of the publisher Valentino Gagliardi Colle di Val DElsa Italy ISBN - photo 2
Logo of the publisher
Valentino Gagliardi
Colle di Val DElsa, Italy
ISBN 978-1-4842-7143-8 e-ISBN 978-1-4842-7144-5
https://doi.org/10.1007/978-1-4842-7144-5
Valentino Gagliardi 2021
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use.
The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, expressed or implied, with respect to the material contained herein or for any errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This Apress imprint is published by the registered company APress Media, LLC part of Springer Nature.

The registered company address is: 1 New York Plaza, New York, NY 10004, U.S.A.

To my grandfather, Valentino. I will always miss you.

Introduction

If youre reading this, Im glad! It means you are interested in Django, one of the most powerful and flexible web frameworks out there.

When I discovered Django years ago, I realized I could make perfectly working prototypes faster than with any other web framework; prototypes that later would become robust, rock-solid web applications.

These days, with JavaScript all the rage, the temptation to jump on the JavaScript-full-stack bandwagon is strong, and sometimes this tendency makes beginners think that everything must be built with JavaScript. It shouldnt. Even if I work primarily with JavaScript, Django is still my safe harbor for building stuff quickly.

At the same time, used with cognition, modern frontend libraries like Vue.js and React pair well with Django, which can work completely decoupled from the frontend. This book is an attempt to cover a part of the vast spectrum of decoupled architectures with Django and JavaScript, with an eye on the last developments in the asynchronous Django land, and on the integration between Django and GraphQL. Heres a breakdown of what you can expect from each chapter.
  • In Chapters , we introduce the terminology, what makes a decoupled architecture, how modern JavaScript is supposed to work in Django, and how the Django REST framework can help you build REST APIs.

  • In Chapter , we discuss the advantages and drawbacks of a decoupled architecture.

  • In Chapters , we begin to build a Django project with the Django REST framework and Vue.js to show how Vue can work from within Django templates.

  • In Chapter , we discuss security for REST APIs, and deployment of our Django/Vue.js project.

  • In Chapter , we move to React and Next.js to show how such a framework can be paired with Django. We cover Next.js basics and data fetching.

  • Chapter covers testing, both for the REST API and for the JavaScript frontend.

  • Chapter covers authentication for decoupled setups and shows you how to use session-based authentication for single-page apps with the help of NGINX.

  • Finally, in Chapters , we cover GraphQL in Django, with a look at running Django asynchronously.

All the system commands presented in this book assume that the reader is using a Linux or MacOS system. As for the prerequisites, a basic knowledge of TypeScript and modern frontend libraries is expected.

Have fun!

Acknowledgments

This book is the product of my love for Django and its community.

Id also like to express my gratitude to the Italian Python community in particular, one of the most welcoming out there!

Table of Contents
About the Author
Valentino Gagliardi
is a freelance consultant with many years of experience in the IT industry He - photo 3

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

About the Technical Reviewer
Marcin Gbala
is a software engineer specializing in building web apps with Python and - photo 4

is a software engineer specializing in building web apps with Python and Django, which he has been doing professionally since 2014. He works as a staff engineer, leading the backend team, which develops the GraphQL API. He has spoken at several tech conferences, including GraphQL Summit and PyCon Korea, and his main topics of interest are open-source, Python, and GraphQL. In his free time, he is a runner, musician, and traveler. He is based in Wrocaw, Poland.

The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
V. Gagliardi Decoupled Django https://doi.org/10.1007/978-1-4842-7144-5_1
1. Introduction to the Decoupled World
Valentino Gagliardi
(1)
Colle di Val DElsa, Italy
This chapter offers a brief introduction to:
  • Monoliths and decoupled architectures

  • REST architectures

  • The GraphQL query language

In this chapter, we review traditional web applications, the classic MVC pattern based on views, models, and controllers.

We begin to outline use cases, benefits, and drawbacks of decoupled architectures. We explore the foundations of REST, look at how it compares to GraphQL, and learn that REST APIs are not only RESTful after all.

Monoliths and MVC

For at least two decades, traditional websites and applications all shared a common design based on the Model-View-Controller

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends»

Look at similar books to Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends»

Discussion, reviews of the book Decoupled Django: Understand and Build Decoupled Django Architectures for JavaScript Front-ends and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.