This is a demo project to show how to use Flask, HTMX, TailwindCSS and AlpineJS to build a web application with a modern development workflow.
Read the full workshop documentation here: tecladocode.github.io/flask-htmx-tailwind-alpine-workshop/.
The final app code is in the app
folder.
rye sync
to install Python, create the virtual environment, and install dependencies.rye run flask run
Run the workshop documentation with rye run mkdocs serve
.
Each workshop step has a final code attached to it. The steps are in the steps
folder.
Here's a mapping of the workshop links to their code folders:
steps/01-website-without-reloading
steps/02-dynamic-pagination
steps/03-01-adding-feeds-htmx
and steps/03-02-adding-feeds-alpine
steps/04-read-status
steps/05-unread-numbers
I hope you'll enjoy the workshop!
Want to learn more about Python, web development, and REST APIs? Check out our courses at https://teclado.com!