This repo is a simple demo to test building a real-time chat room using just htmx, FastAPI, and Tailwind CSS—no heavy tools like bundlers or frameworks. The goal is to explore lightweight, reactive web design.
-
Install dependencies with PDM:
pdm install
-
Start the app:
pdm run uvicorn main:app --reload
-
Open http://localhost:8000 in your browser.
- In one tab, enter a username like Test1 and join the chat.
- In another tab, enter a different username like Test2 and join.
- Send messages in either tab, and they’ll show up live in both.
- No Build Tools: No bundlers, packers, or frameworks—just HTML, CSS, and Python.
- Reactive Simplicity: Real-time messaging with minimal setup.
- For Experimenting: A playground for lightweight web design ideas.