https://github.com/angelospanag/fastapi-htmx-tailwind
Experimenting rendering tabs using FastAPI and HTMX.
https://github.com/angelospanag/fastapi-htmx-tailwind
daisyui fastapi htmx polars python python3 ruff tailwindcss uv
Last synced: 5 months ago
JSON representation
Experimenting rendering tabs using FastAPI and HTMX.
- Host: GitHub
- URL: https://github.com/angelospanag/fastapi-htmx-tailwind
- Owner: angelospanag
- Created: 2023-02-11T17:56:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-24T08:54:30.000Z (about 1 year ago)
- Last Synced: 2025-07-24T07:57:03.040Z (11 months ago)
- Topics: daisyui, fastapi, htmx, polars, python, python3, ruff, tailwindcss, uv
- Language: HTML
- Homepage:
- Size: 359 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fastapi-htmx-tailwind
Experimenting rendering tabs using FastAPI and HTMX.
* [fastapi-htmx-tailwind](#fastapi-htmx-tailwind)
* [Prerequisites](#prerequisites)
* [1. Install runtimes](#1-install-runtimes)
* [2. Install Python dependencies](#2-install-python-dependencies)
* [3. Install Node dependencies](#3-install-node-dependencies)
* [Run example](#run-example)
* [Build CSS](#build-css)
* [Run development server](#run-development-server)
* [Run production server](#run-production-server)
## Prerequisites
### 1. Install runtimes
**macOS using brew**
```bash
brew install python@3.14 oven-sh/bun/bun
```
### 2. Install Python dependencies
```bash
uv sync
```
### 3. Install Node dependencies
```bash
cd ui/static
bun install
```
## Run example
### Build CSS
```bash
cd ui/static
bun run build:css
```
### Run development server
```bash
uv run fastapi dev main.py
```
### Run production server
```bash
uv run fastapi run main.py
```
The example should run on http://127.0.0.1:8000