Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python
暫譯: 使用 Django 和 HTML Over the Wire 建立單頁應用程式:學習使用 Python 建立即時單頁應用程式

Fenollosa, Andros

  • 出版商: Packt Publishing
  • 出版日期: 2022-08-24
  • 售價: $1,390
  • 貴賓價: 9.5$1,321
  • 語言: 英文
  • 頁數: 264
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1803240199
  • ISBN-13: 9781803240190
  • 相關分類: DjangoHTMLPython程式語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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.

You'll 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. You'll learn how to create a project, add Docker, and discover development libraries, Django channels, and bidirectional communication, and from then, on you'll create real projects of all kinds using HTML over WebSockets as a chat app or a blog with real-time comments. In addition, you'll modernize your development techniques by moving from using an SSR model to creating web pages using WebSockets over HTML. With Django, you'll be able to create SPAs with professional real-time projects where the logic is in Python.

By the end of this Django book, you'll 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.

商品描述(中文翻譯)

發現如何使用 Python 和 Django 構建即時應用程式,而無需學習 JavaScript 的麻煩

主要特點

- 學習如何使用 Python 和極少的 JavaScript 組合成單頁應用程式 (SPA)
- 在後端和前端之間創建 WebSocket 通信
- 使用本書提供的技術構建一個真實的 Django 專案

書籍描述

HTML over WebSockets 方法簡化了單頁應用程式 (SPA) 的開發,讓您可以跳過學習 JavaScript 渲染框架,如 React、Vue 或 Angular,將邏輯移至 Python。這本網頁應用程式開發書籍提供了您所需的所有 Django 工具,以簡化您的開發並實現即時結果。

您將學習最先進的 WebSocket 技術,以最小依賴 JavaScript 實現即時應用程式。本書還將向您展示如何從零開始使用 Docker 創建專案、測試專案並將其部署到伺服器。您將學習如何創建專案、添加 Docker,並探索開發庫、Django channels 和雙向通信,然後您將使用 HTML over WebSockets 創建各種真實專案,例如聊天應用程式或具有即時評論的部落格。此外,您將通過從使用 SSR 模型轉向使用 HTML 上的 WebSockets 創建網頁來現代化您的開發技術。使用 Django,您將能夠創建具有專業即時專案的 SPA,邏輯在 Python 中。

在這本 Django 書籍結束時,您將能夠構建即時應用程式,並對 Django 的 WebSockets 有深入的理解。

您將學習的內容

- 探索即時網站實現
- 理解 Django channels 的正確使用
- 瞭解如何設置 Docker 與 Django
- 發現如何使用 JavaScript 框架,如 Stimulus
- 在 Django 中異步管理數據庫
- 將動態渲染邏輯帶入後端

本書適合誰

這本書適合希望構建應用程式的開發者,他們希望將邏輯帶入後端,學習 WebSockets,並不依賴 JavaScript 來創建單頁應用程式。預期具備基本的 HTML 和 Python 知識,以及對基本網頁開發概念的熟悉。

目錄大綱

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

目錄大綱(中文翻譯)

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