Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pinjasaur/fastapi-htmx-todo

Minimal todo web app built with HTMX v2 & FastAPI
https://github.com/pinjasaur/fastapi-htmx-todo

fastapi htmx render

Last synced: 11 days ago
JSON representation

Minimal todo web app built with HTMX v2 & FastAPI

Awesome Lists containing this project

README

        

# 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:

I briefly wrote about it on my personal blog:

A hosted instance is available on Render:

After cloning:

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

To run the app locally:

```sh
fastapi dev main.py
```

If you want to deploy this:

```sh
fastapi run main.py
```

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

```sh
fastapi run main.py --port $PORT
```

## License

[MIT](https://pinjasaur.mit-license.org/@2024).