Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pinjasaur/fastapi-htmx-todo
- Owner: Pinjasaur
- Created: 2024-07-02T05:20:24.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-07-10T13:25:05.000Z (7 months ago)
- Last Synced: 2024-11-28T09:40:13.487Z (2 months ago)
- Topics: fastapi, htmx, render
- Language: Python
- Homepage: https://testdriven.io/blog/fastapi-htmx/
- Size: 5.86 KB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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).