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

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.

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