https://github.com/furritos/htmx-starter-app
HTMX Starter App - the quickest way to get up and running with HTMX and Python!
https://github.com/furritos/htmx-starter-app
fastapi hot-reload htmx python python3 starter-app template uvicorn
Last synced: 2 months ago
JSON representation
HTMX Starter App - the quickest way to get up and running with HTMX and Python!
- Host: GitHub
- URL: https://github.com/furritos/htmx-starter-app
- Owner: furritos
- Created: 2023-12-03T18:25:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-12T22:34:02.000Z (over 2 years ago)
- Last Synced: 2025-10-24T21:04:58.021Z (8 months ago)
- Topics: fastapi, hot-reload, htmx, python, python3, starter-app, template, uvicorn
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTMX + FastAPI Starter App
The concept is simple, this is a start app that includes the following modules:
- HTMX
- Uvicorn
- Jinja2
- FastAPI
On top of that, it has neat little QOL features such as:
- Hot reload
- Pre-cooked routes
- Defined requirements
- Neat package structure
This is all built for Python 3, btw.
# Deets
1. Clone this app however you see fit
2. Add a Python virtualnv, `.gitignore` assumes `.venv` but adjust to your liking
3. Source your new environment
4. Install requirements, `pip install -r requirements.txt`
5. Code your heart out
## Running it
To take advantage of the Hot Reload feature, just execute this application like so:
- MacOS and Linux: `DEBUG=true uvicorn app:app --reload`
- Windows:
- `set DEBU=true`
- `uvicorn app:app --reload`
Bummer for those using Safari, Hot Reloading doesn't seem to work there. Just use some other browser for the time being.
~ Enjoy! ~