Building SPAs with Django and HTML Over the Wire: Learn to build real-time single page applications with Python
Fenollosa, Andros
- 出版商: Packt Publishing
- 出版日期: 2022-08-24
- 售價: $1,370
- 貴賓價: 9.5 折 $1,302
- 語言: 英文
- 頁數: 264
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1803240199
- ISBN-13: 9781803240190
-
相關分類:
Django、HTML、Python、程式語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
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.
商品描述(中文翻譯)
了解如何在不需要學習JavaScript的情況下,使用Python和Django構建即時應用程式。
主要特點:
- 學習使用Python和少量JavaScript構建單頁應用程式(SPA)
- 在後端和前端之間建立WebSocket通訊
- 使用本書提供的技術在Django中建立一個真實世界的專案
書籍描述:
使用HTML over WebSockets方法簡化單頁應用程式(SPA)的開發,讓您無需學習React、Vue或Angular等JavaScript渲染框架,將邏輯移至Python。本網頁應用程式開發書籍提供了您在開發過程中所需的所有Django工具,以簡化您的開發並獲得即時結果。
您將學習到最先進的WebSocket技術,以最小程度依賴JavaScript實現即時應用程式。本書還將向您展示如何從頭開始創建一個使用Docker的專案,並在伺服器上進行測試和部署。您將學習如何創建專案、添加Docker,並探索開發庫、Django channels和雙向通訊,從此以後,您將使用HTML over WebSockets創建各種真實專案,例如聊天應用程式或具有即時評論的部落格。此外,您還將通過從使用SSR模型轉向使用WebSockets over HTML來現代化您的開發技術。使用Django,您將能夠在Python中創建具有專業即時專案的SPA。
通過閱讀本書,您將能夠建立即時應用程式,並對Django中的WebSockets有深入的理解。
您將學到:
- 探索實時網站實現
- 理解正確使用Django channels
- 了解如何在Django中設置Docker
- 發現如何使用Stimulus等JavaScript框架
- 在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. 設置虛擬環境
2. 在Docker中創建Django項目
3. 將WebSockets添加到Django
4. 與數據庫一起工作
5. 在房間中分離通信
6. 在後端創建單頁應用程序
7. 只使用Django創建實時博客
8. 簡化前端