Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Rapid Development with Flask, HTMX, TailwindCSS and AlpineJS
Rating: 4.5 out of 5(101 ratings)
1,113 students

Rapid Development with Flask, HTMX, TailwindCSS and AlpineJS

Build interactive web applications with minimal JavaScript, using server-side rendering
Last updated 11/2024
English

What you'll learn

  • Rapidly build an RSS reader application using Flask, HTMX, TailwindCSS, and AlpineJS
  • Use server-side rendering with HTMX to update the page dynamically
  • Rapidly build interactive web applications with minimal JavaScript
  • Sprinkle in-page interactivity simply using AlpineJS
  • CSS fundamentals and how to use TailwindCSS
  • CSS flow, flex, and grid layouts and how to apply them with TailwindCSS

Course content

2 sections23 lectures2h 19m total length
  • Course welcome0:34
  • Temporary bug in Rye — issue with the next lecture0:21
  • Set up a modern Python project with Rye6:49
  • Adding our external web dependencies3:00
  • Build a Flask app to render a single RSS feed6:51
  • The CSS box model11:09
  • CSS flow layout positioning8:54
  • CSS layouts: flex and grid5:29
  • Creating our RSS feed template9:27

    Learn to build an RSS feed template in Flask using HTMX and Tailwind CSS, with a two-column grid, conditional media, and Jinja partial rendering for each entry.

  • Working with a list of different feeds in Flask4:15
  • Media queries with TailwindCSS3:04
  • Colors in TailwindCSS2:59
  • Adding a sidebar with TailwindCSS6:30
  • When should you use partials vs. components?0:22
  • Adding dynamic pagination to our app9:57
  • Adding a read status to articles, and updating the page without reloading9:59
  • Event dispatching and handling with AlpineJS7:22
  • Letting users create new feeds (showing and hiding elements with AlpineJS)16:05

    Enable users to add new RSS feeds via a form, including URL, title, and show images, and render the form with HTMX or AlpineJS in a Flask app.

  • How to work with SVG icons in a Flask project5:02
  • How to create a mobile sidebar with TailwindCSS and AlpineJS10:49
  • How to animate a mobile sidebar with a sliding animation8:39
  • Course conclusion, and thank you0:44

    Express gratitude while emphasizing rapid development with Flask, HTMX, TailwindCSS, and AlpineJS. Build a simple, deployable single Flask app, and scale later with databases and caches to reach product-market fit.

Requirements

  • Intermediate programming knowledge required, preferably with Python
  • Knowledge of Flask will be helpful as the course is fast-paced
  • No CSS, TailwindCSS, or JavaScript knowledge required

Description

Do you want to build interactive web applications quickly and simply?

Python with Flask, HTMX, TailwindCSS, and AlpineJS is a complete stack of technologies to build interactive, engaging web applications without having to write (almost) any JavaScript.

This means you can use your existing Python knowledge without having to learn a completely new language to build your web project.

Traditionally, building a web application without JavaScript would mean a slow and sluggish experience, with lots of page reloads at every button or link click.

With HTMX and AlpineJS, we can avoid almost all page reloads, and craft server-side rendered applications that feel fast, responsive, and engaging.

This includes things like adding pagination, hiding and showing elements, and updating page state.

Adding TailwindCSS into the mix will help us write our CSS quickly and efficiently.

In the course, we build an RSS feed reader that loads data from the internet to display articles from feeds you follow. It's a great project to get familiar with these technologies, and in no time you'll be building your own interactive web applications.

The course contains:

  • Use Flask to create a web application.

  • CSS fundamentals and how to apply them with TailwindCSS.

  • Avoid page reloads with HTMX by making requests to your backend and swapping parts of the page content.

  • Add in-page interactivity simply with AlpineJS using state and event dispatching.

  • Learn about CSS flex and grid to create a commonly used page structure with a sidebar and main content.


I'm sure you'll enjoy this course. See you on the inside!

Who this course is for:

  • Intermediate Python developers who want to quickly build their web application projects
  • Front-end developers who want to understand how to build server-side rendered applications
  • Developers who want to learn about web development, including HTML and CSS