This project is from book Build SPA with React and Wagtail
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:
- Understand
Docker
and useDocker Compose
to do development - Build a REST API for Wagtail CMS
- Use the Django shell to test code and check data.
- Test the REST API and generate test coverage report
- Use the
factory
package to help create test data - Build a React app from
create-react-app
- Understand React Components and the component lifecycle
- Understand React router
- Use
Storybook
to develop React Components - Test React components and the frontend app
- Make
React app
work with Wagtail preview - Deploy the production app to DigitalOcean
- Python 3.8
- Django 3.1
- Wagtail 2.10
- DRF 3.12
- Node 12
- React 16.14
- React Router
- Jest
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
The demo is also online if you want to check.