bradtraversy / htmx-crash-course

Some simple projects that use HTMX with a Node/Express server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTMX Crash Course

This is the code from my HTMX crash course on YouTube. It uses a Node/Express server. All of the HTMX is in the /public .html files.

There are several examples:

  • request.html: Simple example of how to trigger events, make requests, set targets, etc
  • temperature.html: Simple temperature converter
  • polling.html: Example of polling (making a request every x seconds) using a mock weather api
  • search.html: A contact search widget
  • validation.html: Inline validation example
  • profile.html: Simple profile click-to-edit

Usage

Install dependencies

npm install

Visit the html page (eg. http://localhost:3000/search.html)

About

Some simple projects that use HTMX with a Node/Express server


Languages

Language:HTML 53.8%Language:JavaScript 46.2%