/todo-mpa

A TodoMVC clone in 0 lines of JavaScript written with Go and HTMX

Primary LanguageJavaScript

TodoMPA

This repository is inspired by TodoMVC, but comes with a twist: you won't find even one line of JavaScript here.

What's wild is that TodoMVC was created to highlight how frontend frameworks enable interactivity. However, this repo shows there's no need to pick such a framework to achieve the same level of app-iness™️.

TodoMPA is written in Go and, most importantly, HTMX.

Coded with ❤️ and 🤯 by Riccardo Odone.

Additional Notes

You'll find two branches in this repository, where I explored the following question in HTMX:

I need to update other content on the screen. How do I do this?

Run

# install go
BASE_PATH="$(pwd)" go run src/main.go

# create database
curl -X POST http://127.0.0.1:3000/reset