Pinjasaur / fastapi-htmx-todo

Minimal todo web app built with HTMX v2 & FastAPI

Home Page:https://testdriven.io/blog/fastapi-htmx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using HTMX v2 with FastAPI

A simple todo web app built using HTMX v2 with FastAPI.

This is the companion source code to this tutorial on TestDriven.io: https://testdriven.io/blog/fastapi-htmx/

I briefly wrote about it on my personal blog: https://paul.af/testdriven-fastapi-htmx

A hosted instance is available on Render: https://fastapi-htmx-todo.onrender.com

After cloning:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

To run the app locally:

fastapi dev main.py

If you want to deploy this:

fastapi run main.py

If you're using Render, you can specify the port to bind to:

fastapi run main.py --port $PORT

License

MIT.

About

Minimal todo web app built with HTMX v2 & FastAPI

https://testdriven.io/blog/fastapi-htmx/


Languages

Language:Python 54.5%Language:HTML 38.8%Language:CSS 6.7%