• Complain

Andros Fenollosa - Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python

Here you can read online Andros Fenollosa - Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2022, publisher: Packt Publishing, genre: Computer. 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.

Andros Fenollosa Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python
  • Book:
    Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2022
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Discover how to construct real-time applications with Python and Django without the hassle of learning JavaScript

Key Features
  • Learn to put together an SPA using Python and very little JavaScript
  • Create WebSocket communication between the backend and frontend
  • Build a real-world project with Django using the techniques provided in this book
Book Description

The HTML over WebSockets approach simplifies single-page application (SPA) development and lets you bypass learning a JavaScript rendering framework such as React, Vue, or Angular, moving the logic to Python. This web application development book provides you with all the Django tools you need to simplify your developments with real-time results.

Youll learn state-of-the-art WebSocket techniques to realize real-time applications with minimal reliance on JavaScript. This book will also show you how to create a project with Docker from the ground up, test it, and deploy it on a server. Youll learn how to create a project, add Docker, and discover development libraries, Django channels, and bidirectional communication, and from then, on youll create real projects of all kinds using HTML over WebSockets as a chat app or a blog with real-time comments. In addition, youll modernize your development techniques by moving from using an SSR model to creating web pages using WebSockets over HTML. With Django, youll be able to create SPAs with professional real-time projects where the logic is in Python.

By the end of this Django book, youll be able to build real-time applications, as well as gaining a solid understanding of WebSockets with Django.

What you will learn
  • Explore real-time site realization
  • Understand the proper use of Django channels
  • Find out how to set up Docker with Django
  • Discover how to use a JavaScript framework such as Stimulus
  • Manage a database asynchronously in Django
  • Bring dynamic rendering logic to the backend
Who this book is for

This book is for developers looking to build applications where they want to bring logic to the backend, learn WebSockets, and not depend on JavaScript heavily to create a single-page application. Basic knowledge of HTML and Python and familiarity with basic web development concepts is expected.

Table of Contents
  1. Setting up the Virtual Environment
  2. Creating a Django Project around Docker
  3. Adding WebSockets to Django
  4. Working with the Database
  5. Separating Communication in Rooms
  6. Creating SPAs on the Backends
  7. Creating a Real-Time Blog Using Only Django
  8. Simplifying the Frontend

Andros Fenollosa: author's other books


Who wrote Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python? Find out the surname, the name of the author of the book and a list of all author's works by series.

Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python — 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 "Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python" 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
Building SPAs with Django and HTML Over the Wire Learn to build real-time - photo 1
Building SPAs with Django and HTML Over the Wire

Learn to build real-time single page applications with Python

Andros Fenollosa

BIRMINGHAMMUMBAI Building SPAs with Django and HTML Over the Wire Copyright - photo 2

BIRMINGHAMMUMBAI

Building SPAs with Django and HTML Over the Wire

Copyright 2022 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Group Product Manager: Pavan Ramchandani

Publishing Product Manager: Bhavya Rao

Senior Editor: Mark D'Souza

Content Development Editor: Feza Shaikh

Technical Editor: Simran Udasi

Copy Editor: Safis Editing

Project Coordinator: Manthan Patel

Proofreader: Safis Editing

Indexer: Tejal Daruwale Soni

Production Designer: Joshua Misquitta

Marketing Coordinators: Anamika Singh and Marylou De Mello

First published: August 2022

Production reference: 1290722

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham

B3 2PB, UK.

ISBN 978-1-80324-019-0

I want to dedicate this book to four people who gave me the necessary tools to make writing it possible:

My mother, for giving me a heart

My grandmother, for giving me an education

My uncle, Toni Hurtado, for giving me wisdom

My girlfriend, Valentina Rubane, for giving me motivation

Andros Fenollosa

Foreword

This book is about one principle: coordination. How do we coordinate events that occur in different places and at different times within a web application? For example, if multiple users are connected to the same website and need to send messages to each other, how can we achieve fast and effective communication? Such systems are known as real-time applications.

Real-time applications are a standard in web development today. The WebSocket protocol emerged in 2011; it allows you to open a bidirectional tunnel between your web application and another component. The WebSocket protocol creates greater dynamism, and thus improves the user experience. In addition to lower resource consumption, information is updated only when necessary - this avoids redundant requests to the server.

There are many sorts of real-time applications. The first ones that come to mind are social networks or messaging applications since they are part of our daily life. We like to receive information instantly, because we dont need to refresh the page to know if an event has occurred. We dont want to wait, we are inherently impatient. Learning how to develop real-time applications gives us an advantage when finding new techniques to start a software project.

This work presents an alternative to JavaScript for creating Single-Page Applications; and some might worry that the author has started a crusade against JavaScript - but its not the case. Instead, his interest is in explaining the power of Python using WebSockets over HTML to produce real-time applications.

The author of this book, Andros Fenollosa, is a passionate web developer who, using his extensive teaching experience, will give you the necessary foundations to be involved in the development of real-time application.

Camilo Chacn Sartori,

Ph.D. Student in Computer Science at Artificial Intelligence Research Centre (IIIA)

Contributors
About the author

Andros Fenollosa have been teaching web technologies, best practices, and the fundamentals of functional programming for more than a decade.

Since finishing his studies, he have not stopped developing applications, sometimes as a frontend developer, others as a mobile application developer, backend developer, and project manager. Currently, he is working as CTO in a software development studio.

He combine his professional work maintaining several open source projects related to Python, Django, Clojure (including my own framework: Tadam Web Framework), and Linux. He also like to share his knowledge through podcasting, writing newsletters and books, Twitter, and his blog.

About the reviewer

Norbert Mt is a senior web developer/tech lead with 13+ years of experience. His primary programming languages are Python and JavaScript. He is passionate about software architecture, clean code, and leadership. Norbert has also reviewed other Django books, such as Django RESTful Web Services and Django 2 by Example.

I would like to thank my wife for her support.

Table of Contents
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python»

Look at similar books to Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python. 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 «Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python»

Discussion, reviews of the book Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python 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.