Journal Archive — Page 164 of 166
2024-10-08
Unpacking FastHTML Databases
Understand FastHTML's database: Guide to defining multiple tables via the `fast_app` function (**kwargs) and unpacking table/dataclass objects.
2024-10-07
A ChatGPT o1-Preview Code Review
Code review of a Python FastHTML app using WebSockets & Ollama. Includes analysis of anti-patterns & prompts for AI-assisted refactoring.
2024-10-06
FastHTML WebSockets & Database for Streaming & Persistence
Implement FastHTML's built-in database (multiple tables via `fast_app` API) and WebSockets for persistence and streaming in Python apps.
2024-10-05
Ollama Websocket Chat
Build a real-time chat app using FastHTML and WebSockets, powered by a local Ollama LLM with streaming responses and context.
2024-10-04
Understanding FastHTML's Framework Opinions
Understand FastHTML framework opinions: Explore its Flask-like routing, built-in database, HTMX integration, and no-template approach via a CRUD app.
2024-10-03
From Jupyer Notebooks to FastHTML with WebSockets
Use WebSockets in FastHTML to manage long-running asynchronous tasks and stream real-time progress updates to the user interface.
2024-10-02
Code as Infrastructure
Understand Infrastructure as Code via a commented Nix Flake. Explains creating reproducible, cross-platform Python dev environments.
2024-10-01
Melding a Mac and Linux Nix Flake
Build & refine a cross-platform Nix Flake (Linux/macOS) for Python dev. Includes venv/pip setup, optional CUDA, and tmux scripting.
2024-09-27
Forking a Flake of Infrastructure as Code
Fork or clone a Nix Flake template (Pipulate) to start new projects (Botifython). Guide details Git workflow and cross-platform testing via `nix develop`.
2024-09-26
There's No Home Like Nix
Learn FastHTML basics for Python web apps (including HTMX SPA) and manage secrets with python-dotenv within a Nix Flake environment.