Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.83 KB

README.md

File metadata and controls

65 lines (47 loc) · 1.83 KB

Introduction

This project is from book Build SPA with React and Wagtail

Objectives

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

Tech

  • Python 3.8
  • Django 3.1
  • Wagtail 2.10
  • DRF 3.12
  • Node 12
  • React 16.14
  • React Router
  • Jest

How to run on local

You need Docker and Docker Compose and you can install it here Get Docker

$ git clone https://github.com/AccordBox/wagtail-react-blog react_wagtail
$ cd react_wagtail
$ docker-compose up --build

Now open a new terminal to import data and change password.

$ docker-compose exec web python manage.py load_initial_data
$ docker-compose exec web python manage.py changepassword admin

Now you can check on

Demo

The demo is also online if you want to check.