This open source project is for my book Build Blog With Wagtail CMS
You can support my work by purchasing the ebook
Other books written by me
This book will teach you how to build a modern blog with Wagtail CMS
By the end of this course, you will be able to:
Docker
and use Docker Compose
to do developmentpython-webpack-boilerplate
to jump start frontend project bundled by Webpack. Tailwind CSS
as the style solution.Stimulus
, understand how it works and write Stimulus controllers.Dark Mode
works in Tailwind CSS and use Stimulus controller to toggle the dark mode.PDB
and Django shell
to debug, test code and check data in terminal.RoutablePage
and add Date
to the post url.Pagination
component and correctly handle querystring.Markdown
and Latex
.FormBuilder
django-contrib-comments
which support Generic Relations
Tribute.js
, Axios
to add Mention
and Emoji
support to the comment form.$ git clone https://github.com/AccordBox/wagtail-tailwind-blog
$ cd wagtail-tailwind-blog
First, let's build frontend assets, please make sure node
is available.
$ node -v
# install dependency packages
$ npm install
# launch webpack dev server and keep it running
$ npm run watch
You need Docker and Docker Compose and you can install it here Get Docker
# build and launch app
$ 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.