Chapter 7: Creating a Real-Time Blog Using Only Django
In Chapter 6, Creating SPAs on the Backends, we learned essential features for setting up an SPA using HTML over WebSockets, such as changing pages, components, and sessions. We even went a step further by creating a server-side rendering system for each page so that search engines can index all content – a feature that didn’t require much effort as we are inside Django.
We now have the skills and maturity to make applications with all the features that SPA development entails. Now is the time! We will unify all the knowledge acquired in the creation of a perfectly prepared blog. Undoubtedly, this is an excellent exercise regardless of the language or framework that we want to assimilate; it encompasses all the basic tasks of any web development: querying, filtering, and adding to a database (search engine and comments), generating HTML from results (a list of articles and an individual page), use of views (SSR...