Build SPA with React and Wagtail
Minimum price
Suggested price

Build SPA with React and Wagtail

About the Book

Demo Link

This book will teach you how to build a SPA (single-page application) using React and Wagtail CMS

By the end of this course, you will be able to:

  1. Understand Docker and use Docker Compose to do development
  2. Build a REST API for Wagtail CMS
  3. Use the Django shell to test code and check data.
  4. Test the REST API and generate test coverage report
  5. Use the factory package to help create test data
  6. Build a React app from create-react-app
  7. Understand React Components and the component lifecycle
  8. Understand React router
  9. Use Storybook to develop React Components
  10. Test React components and the frontend app
  11. Make React app work with Wagtail preview
  12. Deploy the production app to DigitalOcean

This book includes:

  1. A PDF ebook which contains about 30 chapters.
  2. 10+ screenshots and 7 diagrams, all created by me.
  3. The source code of the project created in this course.

About the Author


Michael Yin is a full stack developer from China, and he loves to write high-quality tutorial about programming.

He has published four books on Leanpub.

He also published Celery courses on

He is also the founder of a Digital Agency AccordBox and available for remote job.

Bundles that include this book

Suggested Price
Bundle Price

Table of Contents

  • 1. Introduction
  • 2. Setup project
  • 3. Dockerizing Wagtail App
  • 4. Add Blog Models to Wagtail
  • 5. StreamField
  • 6. Build REST API with Django REST Framework
  • 7. Build REST API for Wagtail Page
  • 8. UnitTest REST API (Part 1)
  • 9. UnitTest REST API (Part 2)
  • 10. Setup frontend project
  • 11. Dockerizing React project
  • 12. Build React Component with StoryBook
  • 13. Add SCSS support to React project
  • 14. Building React Component (Part 1)
  • 15. Building React Component (Part 2)
  • 16. Building React Component (Part 3)
  • 17. React Router (Part 1)
  • 18. React Router (Part 2)
  • 19. Build App Component
  • 20. Unittest React Component (Part 1)
  • 21. Unittest React Component (Part 2)
  • 22. Integrate Frontend App with REST API
  • 23. Add Preview Support to React project
  • 24. Deploy REST API
  • 25. Deploy Storybook
  • 26. Deploy React app
  • 27. REST API FAQ
  • 28. Frontend FAQ

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Do Well. Do Good.

Authors have earned$10,785,986writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF, EPUB and/or MOBI files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub