/htmx-todomvc

A simple todomvc app using HTMX and Hyperscript

Primary LanguageTypeScript

TODOMVC + HTMX

Build Status

This is a simple TODOMVC app made with HTMX and Express as the backend. There's also a corresponding blog post explaining this project: TodoMVC in HTMX.

Prerequisites

  • Node v18 (LTS) or above
  • PNPM

Steps

  • Clone this repo
  • Run pnpm i
  • Use any one of the below commands

Commands

  • pnpm app:dev - Runs the app in development using Nodemon
  • pnpm app:build - Builds the app using ESBuild for production
  • pnpm build - Builds the SST app ready to be deployed
  • pnpm deploy - Deploys the SST stack with this app to AWS (Uses Lambda and S3 + CloudFront)
  • pnpm destroy - Destroys the deployed SST stack
  • pnpm lint - Runs the TypeScript type checker and scans for XSS vulnerabilities
  • pnpm start - Starts the app in production

Things to do:

  • Deploy the app on AWS (via SST)
  • Add a backend database for todos (preferably DynamoDB)